Error 5893 when trying to send PDF to printer

Hello

I would deeply appreciate it if anyone could assist me. This logic worked in previous version for update to Adobe xi seemed to break it.

I am getting error 5893 "The automation server for AcroExch.App is not registered properly".

I've googled this error repeatedly but cannot find an answer. The issue occurs during the create statement.

I am using OpenEdge version 10 - character mode.

DEFINE VARIABLE g_comhAcroExchApp AS COM-HANDLE NO-UNDO.

CREATE "AcroExch.App" g_comhAcroExchApp NO-ERROR.

full code attached.

Thanks in advance for any help anyone can provide.

Jim


AttachmentSize
Printpdf.p3.79 KB

Comments

Comment viewing options

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

HiThere are many ways to

Hi
There are many ways to print a pdf file; as far as I'm concerned I would not go with Adobe reader.

Many printers support printing directly pdf, for such printers you can simply do:

copy my/path/my_file.pdf \\printServer\printer

For postscript printers, first convert the pdf to ps then send it to the printer the same way:

pdf2ps my/path/my_file.pdf my_file.ps
copy my_file.ps \\printServer\printer

(using pdf2ps from the ghostscript package)

This should cover most of the professional printers, or more basic printers connected to a print server understanding pdf (like CUPS) or ps.

To print to a locally attached printer:
* if it supports pdf or ps: see above
* if not, you can still print using ghostscript's gsprint (http://pages.cs.wisc.edu/~ghost/gsview/gsprint.htm) or directly ghostscript, which as a bunch a command line parameters to control the output.

++
Jice


pauldfixr's picture

Printpdf.p

I'd love to try this, and I do have an application for it, but I see a couple of includes referenced which you did not provide.

First, did you manage to find a resolution - I see you did not get an answer here.
Second, can I use the program? I'm trying to do an OO version, but the automation solution might actually fit better.

Thanks,

Paul Bouscaren