We help IT Professionals succeed at work.

Report to PDF using powerbuilder

Deyhim
Deyhim asked
on
Medium Priority
1,225 Views
Last Modified: 2013-12-26
I want to Generate PDF file from PowerBuilder, i dont want to use ghostscript
how i can do that.

Comment
Watch Question

dw1.Modify("DataWindow.Export.PDF.Method = XSLFOP! ")

or check the power builder help
nt li_ret

dw1.Object.DataWindow.Export.PDF.Method = Distill!

dw1.Object.DataWindow.Printer = &
   "HP LaserJet 4Si/4Si MX PostScript"

dw1.Object.DataWindow.Export.PDF.  &
   Distill.CustomPostScript="1"

li_ret = dw1.SaveAs("custom.pdf", PDF!, true)

Author

Commented:
can we use save as from Datawindow not window?
i mean user define action for button?

Author

Commented:
when i used saverowsas() i received error message
Filed has beed damaged ....etc
yes
u can check powerbuilder help
in  buttonclicked event write this scrip


IF dwo.name = 'b_1' THEN
      if dw_1.Rowcount( ) > 0 THEN
            dw_1.Saveas( )
      END IF;            
END IF      

Author

Commented:
okay... im not using Window Event..
i think Using GNU Ghostscript only solution !!!!
Unlock this solution and get a sample of our free trial.
(No credit card required)
UNLOCK SOLUTION
Unlock the solution to this question.
Thanks for using Experts Exchange.

Please provide your email to receive a sample view!

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.