How to Print PDF Files with System-dialog Using 4GL?

Hi, Im using PDFInclude in my project.

My problem is, I want the generated PDF File be printed on a printer "directly" but with system-dialog
using 4Gl code or any shared procedure/s.

Please reply for any possible solution.

Thanx for help,
redksienz


Comment viewing options

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

I am new to this forum, but

I am new to this forum, but I see you are discussing printing PDF files and thought I may be able to get some help. You see, I am in the label business and need to print
stickers
, decals and other PDF files often. I was wondering if there is any way that I can print a PDF document without having to open it from a web application. Right now, I use Streamreader to access the PDF. I keep getting ASCI code every time I try to print it. I hope someone out there can offer me some advice; I would greatly appreciate the help.


Acroread 5

Hi redksienz,

What you need to do is install acrobat reader for your OS. we are using a hp-ux box, and installed acrobat reader 5 (note, 7 does not work on hp-ux). Using the following command we are able to print the pdf that we create:

cat | acroread -toPostScript | lp -d

This prints our PDFs in unix, (including images and formatting and lines).

Good luck,


How to Print PDF Files with System-dialog Using 4GL?

I don't know what version of Progress you are using and the environment - is it c/s or host based etc. But you can try using the _osprint utility that comes with Progress (in a pl).

Sam Leung
Pro-Sys Consultants


PDF Printing

Hi Sam.
I have the same question as I have been struggling for a week now to get progress to print the pdf's I have generated with the pdf include program.
I have checked my installation as well as the media and I'm unable to find the os_print program.
I'm running 10.1A.
Any help would greatly be appreciated
Kind Regards
Derick.


gSanchez's picture

Where is _osPrint?

in support with Sam's advice, _osPrint.p can be found in one of the progress procedure library file "adecomm.pl" so u can call this _osPrint:

 RUN adecomm\_osprint.p (INPUT  hWidget, 
                         INPUT  cFile,
                         INPUT  iFontNumber, 
                         INPUT  iUseDialog, 
                         INPUT  iPageSize, 
                         INPUT  iPageCount, 
                         OUTPUT lPrinted).


In this situation, I don't know what font number should be supplied to iFontNumber since
pdfInclude don't need this at all. (Haven't tried it yet. but i will in my free schedule.)

What i did was I borrowed the file included in the PDFInclude samples download browse2pdf.
I used the viewXMLdialog.w to view this file and used the print button within it. But i'm still looking for the solution to print this files without viewing it. I tried to check WinPDFPrint but sad 2 say, it doesn't have entries for pages to be printed.. but thanx anyway.


You did not mention what

You did not mention what your environment is.

In a UNIX environment, you would have to convert the pdf file to a pcl file and then print it pcl printer.

In a Windows environment, I guess I was too fast with my respond. The program _osprint (a typo) is actually a Progress utility to print ascii file (in the progress library, extension .pl, somewhere). We have an utility WinPDFprint.w that you can download from our website (www.epro-sys.com). If the download does not work, please contact me and I will send it to you.

Sam Leung
Pro-Sys Consultants
sleung@epro-sys.com


How to Print PDF Files with System-dialog Using 4GL

Hi.

My environment is WIN.
Well, i've downloaded the utility WinPDFprint.w as Sam told. However, when a try to run it, it's returned that can't load the COM Object from AcroExch.PDDoc.
I've tried to download and instal SDK from Adobe, and i can't register the follow object into the system.

Can anyone help me?

Thanks!


redskienz's picture

How to Print PDF Files with System-dialog Using 4GL?

Hi,
I'm so sorry for not mentioning. I am using Progress 10.1A
and I generated the pdf file using the famous PDFInclude.

Thanks for the reply Sir,
gSanchez