Results 1 to 6 of 6

Thread: Email pdf

  1. #1
    Join Date
    Mar 2005
    Posts
    55

    Question Unanswered: Email pdf

    Is there a way to output to pdf and attach to email using adobe, without having to save the document first and manually attach the document.

  2. #2
    Join Date
    May 2005
    Location
    Nevada, USA
    Posts
    2,888
    Provided Answers: 6
    Not directly, that I know of. I use this to send pdf files:

    http://www.lebans.com/reporttopdf.htm
    Paul

  3. #3
    Join Date
    Apr 2004
    Location
    metro Detroit
    Posts
    634
    If your not set on Adobe, this can be done with PDF995.

    http://www.pdf995.com

  4. #4
    Join Date
    Jun 2004
    Location
    Arizona, USA
    Posts
    1,848
    Personally, I prefer CutePDF over pdf999. There is a free version of cutePDF. However, it has a shortcoming (as does pdf999,) in that it requires that the user enter the target PDF file name each time you print to the CutePDF print driver. This gets annoying, when you could programatically supply a file name, and avoid user interaction.

    Now, CutePDF uses Ghostscript as the underlying print engine. Essentially, it wraps a postscript print driver around ghostscript. If you need to supply a file name programatically, you can do the same thing from Access or VB, but just in two steps. Install Ghostscript. And, install a postscript print driver, which is set to print to a file (enter a file path as a port name in the printer properties) Then, when printing, use this printer. After the printing completes (You'll have to disable print spooling or monitor the print spooler) so that you know when the printing IS actually complete) call the ghostscript API to convert the postscript file to a PDF file with the name you need. Finally, attach the pdf file to an email & send, and delete the pdf file.

    Ref http://www.xtremevbtalk.com/showthread.php?t=284865
    Lou
    使大吃一惊
    "Lisa, in this house, we obey the laws of thermodynamics!" - Homer Simpson
    "I have my standards. They may be low, but I have them!" - Bette Middler
    "It's a book about a Spanish guy named Manual. You should read it." - Dilbert


  5. #5
    Join Date
    Jun 2004
    Location
    Arizona, USA
    Posts
    1,848
    BTW. If the EMailing is what is holding you up, check out Ostrosoft's SMTP control or DLL.
    Lou
    使大吃一惊
    "Lisa, in this house, we obey the laws of thermodynamics!" - Homer Simpson
    "I have my standards. They may be low, but I have them!" - Bette Middler
    "It's a book about a Spanish guy named Manual. You should read it." - Dilbert


  6. #6
    Join Date
    Apr 2004
    Location
    metro Detroit
    Posts
    634
    There is a module that allows you to pass the file name in code here http://www.freeware995.com/misc/vbacode.txt. This and the price are why I use PDF995.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •