Jump to content


Photo
- - - - -

Printing PDF's from ProIV


5 replies to this topic

#1 NeilIV

NeilIV

    Member

  • Members
  • PipPip
  • 28 posts
  • Gender:Male

Posted 31 January 2005 - 02:42 PM

Has anyone printed pdf's from ProIV using DDE_EXECUTE?

:D

#2 Neil Hunter

Neil Hunter

    ProIV Guru

  • Members
  • PipPipPipPipPip
  • 414 posts
  • Gender:Male
  • Location:Johannesburg, South Africa

Posted 31 January 2005 - 03:07 PM

Nope, but i can get one of my colleagues to give you a detailed answer on how to get PDF's working using other means

#3 NeilIV

NeilIV

    Member

  • Members
  • PipPip
  • 28 posts
  • Gender:Male

Posted 31 January 2005 - 07:34 PM

Got it to work. Here is a basic way to print three pdf's:


#A = CLIENT.EXECUTE('Acrord32.exe','','','SW_SHOWMINIMIZED')
FOR #Q = 1 TO 3
#STAT = DDE_EXECUTE('ACROVIEW','CONTROL','[DocOpen(' + $FILES(#Q) + ')]')
#PRINT = DDE_EXECUTE('ACROVIEW','CONTROL','[FilePrintSilent(' + $FILES(#Q) + ')]')
#CLOSE = DDE_EXECUTE('ACROVIEW','CONTROL','[DocClose(' + $FILES(#Q) + ')]')
ENDFOR



:D

Edited by NeilIV, 31 January 2005 - 07:35 PM.


#4 Guest_Guest_*

Guest_Guest_*
  • Guests

Posted 01 February 2005 - 09:59 AM

Yuk City - now way would I use that !

Generate an XML report in PROIV, access it via a task in Concerto, use XSL / FOP to generate the PDF.

That way you pass off launching the app to the system that accesses the concerto url.
and
You are using a standard transform spec to define the PDF

It works really well :D ;) ;)

#5 Sindre Solem

Sindre Solem

    Member

  • Members
  • PipPip
  • 46 posts
  • Gender:Male
  • Location:Trondheim, Norway

Posted 01 February 2005 - 11:15 AM

And you can pass command line parameters (/t ) to Acrobat Reader to print the specified document directly to the default (or even a specified) printer.

#6 NeilIV

NeilIV

    Member

  • Members
  • PipPip
  • 28 posts
  • Gender:Male

Posted 01 February 2005 - 07:22 PM

In my solution above(which is just a test snippit that prints three seperate documents), I am printing already existing PDF's from a directory. The user is going to be picking a group of docs from a list box and hitting a print button from within a ProIV application.

The only thing they ever see is the brief adobe startup screen ( if abobe is not already open). They never see the documents load, they never have the print window pop-up, it goes to their default printer, and closes each doc. Abobe is just minimized below on their toolbar. I can then run some code that closes the Adobe app.

Not really sure where this is clunky.



Reply to this topic



  


0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users