Solved

Report to PDF using powerbuilder

Posted on 2009-07-06
8
1,052 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.

0
Comment
Question by:Deyhim
  • 5
  • 3
8 Comments
 
LVL 14

Expert Comment

by:shru_0409
ID: 24783990
dw1.Modify("DataWindow.Export.PDF.Method = XSLFOP! ")

or check the power builder help
0
 
LVL 14

Expert Comment

by:shru_0409
ID: 24783999
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)
0
 
LVL 1

Author Comment

by:Deyhim
ID: 24784056
can we use save as from Datawindow not window?
i mean user define action for button?
0
 
LVL 1

Author Comment

by:Deyhim
ID: 24784117
when i used saverowsas() i received error message
Filed has beed damaged ....etc
0
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
LVL 14

Expert Comment

by:shru_0409
ID: 24784122
yes
u can check powerbuilder help
0
 
LVL 14

Expert Comment

by:shru_0409
ID: 24784146
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      
0
 
LVL 1

Author Comment

by:Deyhim
ID: 24784309
okay... im not using Window Event..
i think Using GNU Ghostscript only solution !!!!
0
 
LVL 14

Accepted Solution

by:
shru_0409 earned 500 total points
ID: 24784639
i don't have much idea about ghostscrip  pls check this link
http://groups.google.com/group/sybase.public.powerbuilder.objects/msg/41096cc3c5311ca3
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

In our object-oriented world the class is a minimal unit, a brick for constructing our applications. It is an abstraction and we know well how to use it. In well-designed software we are not usually interested in knowing how objects look in memory. …
Update (December 2011): Since this article was published, the things have changed for good for Android native developers. The Sequoyah Project (http://www.eclipse.org/sequoyah/) automates most of the tasks discussed in this article. You can even fin…
This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.
The viewer will learn how to use NetBeans IDE 8.0 for Windows to connect to a MySQL database. Open Services Panel: Create a new connection using New Connection Wizard: Create a test database called eetutorial: Create a new test tabel called ee…

920 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now