Solved

distribute_reporrt

Posted on 2009-05-12
7
340 Views
Last Modified: 2013-12-26
I want to generate a PDF using Power builder application that uses XSL-FO method.
What java files do i need to distribute with application and how would i include it with the EXE for install on the user machine.
do i also include Java runtime.

thanks,
0
Comment
Question by:sam15
7 Comments
 
LVL 12

Assisted Solution

by:Gibu George
Gibu George earned 150 total points
ID: 24365558
0
 

Author Comment

by:sam15
ID: 24369799
thanks - great link. it seens XSL-FO may have some issues depending on the DW.
are we basically stuck with either XSL-FO or distiller (ghostscript) for PDF generation?
0
 
LVL 18

Accepted Solution

by:
diasroshan earned 200 total points
ID: 24371975
Hi,

Like ive mentioned in reply to the other post,
If your application uses the Apache processor to save as PDF or XSL-FO, you must deploy the fop-0.20.4 directory and the Java Runtime Environment (JRE) with your application.

They must be deployed in the same directory as the PowerBuilder runtime files. For example, if you deploy your application and pbvm105.dll and the other PowerBuilder runtime files in a directory called MyApplication, the Apache processor and the JRE must be deployed in MyApplication/fop-0.20.4 and MyApplication/jre. However, you do not need to place a copy of the JRE in this location if the full JDK is installed on the target computer and is in the classpath.

Just check if the following JAR files are in the user's classpath:
fop-0.20.4\build\fop.jar
fop-0.20.4\lib\batik.jar
fop-0.20.4\lib\xalan-2.3.1.jar
fop-0.20.4\lib\xercesImpl-2.1.0.jar
fop-0.20.4\lib\xml-apis.jar
fop-0.20.4\lib\avalon-framework-cvs-20020315.jar

Cheers,
Rosh
0
Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

 

Author Comment

by:sam15
ID: 24375723
can this be correct?

according to this link, you can install a PDF driver or acrobat distiller for reporting with PB 8.0 would this work with 10.5

http://www.experts-exchange.com/Programming/Editors_IDEs/PowerBuilder/Q_21190192.html

0
 
LVL 14

Assisted Solution

by:sandeep_patel
sandeep_patel earned 150 total points
ID: 24381248
the above link is the another approach. As per this link you can install a pdf printer and instead of datawindow.saveas method you can use datawindow.print. It will sent the print to this printer like other printer and that printer will generate a pdf file for you. like other printers print the content on printer.

so either you need third party printer to install or you should use XSL-FO method to generate pdf.

for PDF printer you may need to install printer on each client machine and in your program you need to set that printer for the pdf and then fire print command.

for XSL-FO method you need to deploy JRE as Rosh has mentioned and in your program you need to use saveas pdf facility.

For third party you may need to purchase printer installable while XSL-FO is free.
Hope this is clear and decide what is convinient to you.

Regards,
Sandeep
0
 

Author Comment

by:sam15
ID: 24381538
we are trying to avoif installation of 3rd party products like ghostscript but it seems the pdf printer option would be simlar where you have to install it on every machine or would this be much easier to deploy. would it also create the PDF file o nthe local disk or it will only print it?
0
 

Author Comment

by:sam15
ID: 24384984
sandeep

cant you install one of these free drivers and get it to work

http://www.adobe.com/support/downloads/product.jsp?product=44&platform=Windows

Would not be just one DLL file that can be zipped with the application exe or it has to be separate install on each client.
0

Featured Post

Migrating Your Company's PCs

To keep pace with competitors, businesses must keep employees productive, and that means providing them with the latest technology. This document provides the tips and tricks you need to help you migrate an outdated PC fleet to new desktops, laptops, and tablets.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
firstswap challenge 20 78
JavaScript/Java - Changing an image background color 4 67
servlet filter example 37 63
JAVA API design with micro service cloud in mind 1 18
Introduction Java can be integrated with native programs using an interface called JNI(Java Native Interface). Native programs are programs which can directly run on the processor. JNI is simply a naming and calling convention so that the JVM (Java…
How to install Selenium IDE and loops for quick automated testing. Get Selenium IDE from http://seleniumhq.org Go to that link and select download selenium in the right hand columnThat will then direct you to their download page.From that page s…
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…
The viewer will learn how to synchronize PHP projects with a remote server in NetBeans IDE 8.0 for Windows.

803 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