Solved

Report to PDF using powerbuilder

Posted on 2009-07-06
8
1,083 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 1

Author Comment

by:Deyhim
ID: 24784117
when i used saverowsas() i received error message
Filed has beed damaged ....etc
0
 
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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

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. …
Jaspersoft Studio is a plugin for Eclipse that lets you create reports from a datasource.  In this article, we'll go over creating a report from a default template and setting up a datasource that connects to your database.
The viewer will learn how to synchronize PHP projects with a remote server in NetBeans IDE 8.0 for Windows.
The viewer will learn how to use and create new code templates in NetBeans IDE 8.0 for Windows.

691 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