Hi,
I try to use the PercentagePageScaling when I print a PDF-label to a label printer.
I start with creating the PDF-label to disc, open it in my PDF Viewer PDF-XChange and print the PDF-label on my label printer with Custom Zoom 50% and the PDF-label prints ok.
I then try to print the same PDF-label with DynamicPDF PrintManager 2.0.2 and use the PercentagePageScaling class, but then the printed PDF-label is all black.
I have tried to print to Zebra TPL 3844-Z and to Brother PT-9800PCN. I also tried to print a document to SHARP MX-3110N PCL6 with PCL and postscript driver. I just get a blank paper from the printer.
I also tried printing with PDF-XChange printer with no luck. When I look at the file printed by PDF-XChange it's almost empty just some metadata.
I use DynamicPDF v8.0.0 creating the PDF.
Dim myPrintJob As PrintJob = New PrintJob(MyPrinter, "C:\\MyPDF.pdf")
Dim MyPercentagePageScaling As PercentagePageScaling = New PercentagePageScaling(50.0F)
myPrintJob.PrintOptions.Scaling = MyPercentagePageScaling
myPrintJob.Print()
Any ideas what's wrong?
Thanks,
Stefan
PercentagePageScaling
Re: PercentagePageScaling
Support · Jan 18, 2017Hello Stefan,
Please set the scaling factor value as 0.5F and apply it to the PrintJob to achieve the 50% scaling. This will work for you. Below is the code sample for it.
' Create a PercentagePageScaling object by setting 0.5 as scaling factor to achieve 50% page scaling.
Dim MyPercentagePageScaling As PercentagePageScaling = New PercentagePageScaling(0.5F)
Thanks,
ceTe Software Support Team.
Re: PercentagePageScaling
Forum member · Jan 18, 2017Hi,
Thanks for the quick reply. It works great now.
You need to update the .Net Help Library documentation about this, because it says 10.0F for 10%
' Create a PercentagePageScaling object set to 10%
Dim MyPercentagePageScaling As PercentagePageScaling = New PercentagePageScaling(10.0F)
Or am I missing something?
Thanks,
Stefan
Re: PercentagePageScaling
Support · Jan 18, 2017Hello Stefan,
Sorry about that. We will update the help documentation soon.
Thanks,
ceTe Software Support Team.