PercentagePageScaling

Skip Navigation LinksHome  /  Support  /  Forums  /  DynamicPDF PrintManager for .NET (v2)  /  PercentagePageScaling

DynamicPDF PrintManager for .NET (v2) Forum

 Jan 18 2017 5:48 AM
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
 Jan 18 2017 9:20 AM
Posted by a ceTe Software moderator
Hello 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.
 Jan 18 2017 10:31 AM
Hi,

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
 Jan 18 2017 1:50 PM
Posted by a ceTe Software moderator
Hello Stefan,

Sorry about that. We will update the help documentation soon.

Thanks,
ceTe Software Support Team.


All times are US Eastern Standard time. The time now is 4:26 AM.