1. Jeff Viemont
  2. PowerBuilder
  3. Thursday, 24 August 2017 18:52 PM UTC

When DWO is in preview mode, it looks fine on the screen. It prints fine too.  When savedas PDF! using the nativePDF! apporach, the resultant PDF introduces extra blank pages.

dw_Main.Modify("Datawindow.Export.PDF.Method=NativePDF!")
dw_Main.Modify("Datawindow.Export.PDF.CustomSize = 5")
//dw_Main.Modify("Datawindow.Print.Margin.Left = 75")
//dw_Main.Modify("Datawindow.Print.Margin.Right = 2000")
li_rc = dw_main.SaveAs(ls_pathname, PDF!, FALSE)

 

As indicated above, i can change the margins at runtime, but knowing what the value should be is a crap shoot.  if is set teh left marging to 75 it look aproximatly what the report will look like when printed.

Chris Pollach @Appeon Accepted Answer Pending Moderation
  1. Friday, 25 August 2017 12:52 PM UTC
  2. PowerBuilder
  3. # 1

Hi Jeff;

  Ticket #318 has now been opened with Engineering to evaluate this native PDF rendering problem.

Regards ... Chris

Comment
  1. Adele Malherbe
  2. Thursday, 10 May 2018 08:24 AM UTC
Is it solved yet?

  1. Helpful
There are no comments made yet.
Daniel Vivier Accepted Answer Pending Moderation
  1. Thursday, 24 August 2017 19:05 PM UTC
  2. PowerBuilder
  3. # 2

I would have thought the margins would be taken from the design of the DW if you don't set them specifically for the NativePDF. I haven't had any problems like that. 

Comment
There are no comments made yet.
  • Page :
  • 1


There are no replies made for this question yet.
However, you are not allowed to reply to this question.
We use cookies which are necessary for the proper functioning of our websites. We also use cookies to analyze our traffic, improve your experience and provide social media features. If you continue to use this site, you consent to our use of cookies.