Proprint for Progress

Hello.

I have made new utility for printing professional printouts from Progress. This utility is based on jasperrepors and made in java. Also I have created progress running procedures for using it. I think it will be very usefull for progress users all over the world. Output formats are: pdf, xls (do not need MSOffice installed!), txt, rtf, xml and possibility to output to the network priner.

Also it is possible to make templates with iReport and it is free ...


AttachmentSize
Proprint Progress call56.3 KB
Java sources11.02 KB

Comments

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

thanks

thanksI have made new utility for printing professional printouts from Progress. This utility is based on jasperrepors and made in java. Also I have created progress running procedures for using it. I think it will be very usefull for progress users all over the world. Output formats are: pdf, xls (do not need MSOffice installed!), txt, rtf, xml and possibility to output to the network priner.

Also it is possible to make templates with iReport and it is free ...


problem with winexec

I'm trying to execute this program, but..

When i execute, in the procedure "execute" in prorpint.p, i receive in "ii" the value 33.
I tried change the path of includes .i and .p to the full path "c:\proprint..."; reinstall java jdk to 6.17 .

Someone can help me?
I'm using WinXP Pro sp2, openedge 10.2A


greetings, terrans!

With urtamm! Merry Christmas!


IvanMladenovic's picture

problem with java

Hi !
I've been lokking for something like this
However , When I start pdf.bat(or any other bat procedure) i;m getting the folowing error:

C:\PROGRESS\dev\proprint>proprint/prnt.bat -t proprint/templates/testreport.jasp
er -d proprint/samples/sample-data.xml -o proprint/samples/test.pdf
Exception in thread "main" java.lang.UnsupportedClassVersionError: Bad version n
umber in .class file
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
at net.sf.jasperreports.engine.util.JRClassLoader.loadClass(JRClassLoade
r.java:318)
at net.sf.jasperreports.engine.util.JRClassLoader.loadClassFromBytes(JRC
lassLoader.java:227)
at net.sf.jasperreports.engine.design.JRAbstractJavaCompiler.loadEvaluat
or(JRAbstractJavaCompiler.java:76)
at net.sf.jasperreports.engine.design.JRAbstractCompiler.loadEvaluator(J
RAbstractCompiler.java:320)
at net.sf.jasperreports.engine.design.JRDefaultCompiler.loadEvaluator(JR
DefaultCompiler.java:218)
at net.sf.jasperreports.engine.fill.JRFillDataset.createCalculator(JRFil
lDataset.java:410)
at net.sf.jasperreports.engine.fill.JRBaseFiller.(JRBaseFiller.jav
a:384)
at net.sf.jasperreports.engine.fill.JRVerticalFiller.(JRVerticalFi
ller.java:77)
at net.sf.jasperreports.engine.fill.JRVerticalFiller.(JRVerticalFi
ller.java:59)
at net.sf.jasperreports.engine.fill.JRFiller.createFiller(JRFiller.java:
147)
at net.sf.jasperreports.engine.fill.JRFiller.fillReport(JRFiller.java:83
)
at net.sf.jasperreports.engine.JasperFillManager.fillReport(JasperFillMa
nager.java:601)
at net.sf.jasperreports.engine.JasperFillManager.fillReport(JasperFillMa
nager.java:517)
at com.progress.print.JasperPrint.operate(JasperPrint.java:148)
at com.progress.print.JasperPrint.main(JasperPrint.java:102)

I'Have JDK 1.5 SE And JDK 1.6 SE , but JDK 1.6 is Default

Ivan


UnsupportedClassVersionError

Hello Ivan.

You need to download the java source code and compile it on Your machine.
For compilation use maven2 (maven.apache.org).

Give me know, if anything goes wrong ...

BR,
Sergei


redskienz's picture

Cannot run sample of Proprint

I have completed the requirements. But I cannot run the sample of the sources.
Can you please add detailed steps on how to use this tools..

Thanx in advance.
gSanchez


Instrucrions

First of all check which version of java intalled on you computer (type java -version in command line, 1.4 or later will be fine).
Second you need to create shortcut of prowin32 and "Start in" must me the directory where you copied the samples.

Thats it.

Best regards,
Sergei.


redskienz's picture

for Sergo

Gud Day,

As you have told, My java version is 1.5. then I already created a shortcut to lunch Prowin32 and start in the folder where i copied files.

Here's what i can see in my Folder:
1. src
2. pom
3. readme
4. tt-def.p
5. filter.properties
6. proprint
7. sample.p
8. My ShortCut

Syntax is correct and no errors when i run it. But there's no preview or report is showing me. I tried to display the contents of the table being printed and i can see records that should be printed. I also searched for the output file and there is none. What is wrong with my configuration?

Tanx,
gSanchez


Hello gSanchez. You have put

Hello gSanchez.

You have put everything together (java & progress code). But download only progress code, read readme.txt in the root directory.
You need to download this jars to proprint/lib directory
--------------------------------------------------------
barbecue-1.1.jar
commons-beanutils-1.7.0.jar
commons-cli-1.0.jar
commons-collections-3.1.jar
commons-digester-1.8.jar
commons-logging-1.0.4.jar
ireport.jar
itext-1.3.1.jar
jasperreports-1.3.4.jar
log4j-1.2.9.jar
mail-1.4.jar
poi-3.0-FINAL.jar
xalan-2.7.0.jar

After you do this, try to run proprint\samples\pdf.bat in command line. You you see the pdf, then you are ready to run a progress code too. Just run sample.p.

BR,
Sergei.


redskienz's picture

I guess I'm missing something here. help

Hi Sergei,

I guess i'm missing something here...
To make it clear, here's what I did.

I. I downloaded the Proprint Progress Call (attached). (c:\gProgram)
II. Downloaded the java Sources (attached). (c:\gProgram)
III. Downloaded the Jar Files as indicated. (c:\gProgram\proprint\lib)
IV. Unzipped the jars in the same folder. (c:\gProgram\proprint\lib)
IV. Created a shortcut. (c:\gProgram)

and that's it.

My apology., I'm a bit newbie here.. thanks Sergs.

Regards,
gSanchez


prnt.bat presumes JAVA_HOME environment variable is set

prnt.bat presumes that the JAVA_HOME environment variable is set (if it is not, it sets it to the local folder, i.e. the folder that contains the proprint folder, and that would be wrong).

If it's not already set, you can either edit prnt.bat to set that variable to the true Java JRE path or set a global environment variable named JAVA_HOME in Windows.


JAVA_HOME

Thanks dlauzon.

You are absolutly right!