Skip to Content
0

dw_1.print(false) always creating blank pdf

Nov 24, 2017 at 09:50 AM

50

avatar image
Former Member
ll_printed = dw_1.print(FALSE)IF ll_printed =1AND FileLength64(gs_TmpFile)>100000THEN

ls_run =gs_GhostScript_Path +"gswin32c -q -sDEVICE=pdfwrite -sOutputFile=" + gs_TmpFile + ".pdf " + " -dBATCH -dNOPAGEPROMPT -dNOPROMPT-dQUIET -dNOPAUSE" +' ' + gs_TmpFileENDIF

I got this script where I check the file length, I always generate a PS with 11kb. If i continue to create a pdf. it will create a blank PDF. Sometimes It actually print the correct information sometimes its blank.

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

avatar image
Former Member Nov 28, 2017 at 08:43 PM
0

If your goal is to create a pdf, why not call SaveAs with PDF! option? Also check if your columns have been formatted correctly and that they do not spillover to the next page.

Share
10 |10000 characters needed characters left characters exceeded