Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Create PDF In Powerbuilder 6.5

Status
Not open for further replies.

gy2cool

Programmer
Oct 20, 2010
16
0
0
IN
Hi Friends

I am not able to create PDF file in PB 6.5. i download Ghostscript and confi the lacal printer.

and put the code as:

dw_1.Object.DataWindow.Export.PDF.Method = Distill!
dw_1.Object.DataWindow.Printer = "Sybase DataWindow PS"
dw_1.Object.DataWindow.Export.PDF.Distill.CustomPostScript="Yes"

After that a i use saveas function:
dw_1.SaveAs(filename, PDF!, FALSE)


But error message come

Enumerated data type Distill not supported.

Plz help me.
 
Looks to me like you need to define a pdf printer on your system and then print to that printer. I don't believe saving a datawindow to PDFs via Ghostscript came to PB until version 7.

Matt

"Nature forges everything on the anvil of time"
 
then plz tell me how can i perform the task in PB6.5
Is there any alternative way to do that?
 
You have to set up your pdf creator software as a printer in Windows. Set it as the default printer, then do a dw.print command.

Matt

"Nature forges everything on the anvil of time"
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top