Results 1 to 35 of 35

Thread: Printing DOC to PDF Writer

  1. #1

    Thread Starter
    Need-a-life Member Mc Brain's Avatar
    Join Date
    Apr 2000
    Location
    Buenos Aires, Argentina
    Posts
    6,808

    Printing DOC to PDF Writer

    I've been searching through posts but haven't found a solution. Can anybody tell me how to print a DOC file to the PDF Writer? -in order to get a PDF version of my DOC-
    Emiliano F. Martín


    If a post has helped you then please Rate it! (and give the user points he/she deserves by clicking on the image).
    Encourage the person who helped you to keep doing it, and give him the points he deserves.


    MP3 Organizer: Freeware to logically organize all your MP3s.

  2. #2

    Thread Starter
    Need-a-life Member Mc Brain's Avatar
    Join Date
    Apr 2000
    Location
    Buenos Aires, Argentina
    Posts
    6,808
    Nevermind... I found it out.
    Emiliano F. Martín


    If a post has helped you then please Rate it! (and give the user points he/she deserves by clicking on the image).
    Encourage the person who helped you to keep doing it, and give him the points he deserves.


    MP3 Organizer: Freeware to logically organize all your MP3s.

  3. #3
    Frenzied Member JungleMan's Avatar
    Join Date
    Feb 2001
    Posts
    2,033
    could you tell us how you did it?
    I'm bringing geeky back...

  4. #4

    Thread Starter
    Need-a-life Member Mc Brain's Avatar
    Join Date
    Apr 2000
    Location
    Buenos Aires, Argentina
    Posts
    6,808
    Sure... putting all the code together (I have them on different subs) would be soemthing like this
    VB Code:
    1. Private objWord As Word.Application
    2. Private objDocument As Word.Document
    3.  
    4. Private Sub WritePDF(FileName As String)
    5.     Dim fName As String
    6.     Dim pName As String
    7.     Dim p As Printer
    8.    
    9.     On Error Resume Next
    10.     Set objWord = GetObject(, "Word.Application")
    11.        
    12.     ' if error then Word wasn't open
    13.     If Err.Number <> 0 Then
    14.         ' open Word
    15.         Set objWord = CreateObject("Word.Application")
    16.     End If
    17.     Err.Clear
    18.    
    19.     On Error GoTo 0
    20.    
    21.     Set objDocument = objWord.Documents.Open(FileName)
    22.    
    23.     ' activate the document
    24.     objDocument.Activate
    25.    
    26.     'Save the default printer name
    27.     pName = Printer.DeviceName
    28.    
    29.     With objWord
    30.         On Error Resume Next
    31.         '  I can not find a way to create the files where I want, and this
    32.         'is the default directory... so I delete all the PDF files, and
    33.         'LOG files first. Make sure this is not a problem.
    34.         Kill "C:\Program Files\Adobe\Acrobat 4.0\PDF Output\*.log"
    35.         Kill "C:\Program Files\Adobe\Acrobat 4.0\PDF Output\Microsoft Word - *.pdf"
    36.         On Error GoTo 0
    37.         'Set the Acrobat Distiller as the default printer
    38.         .ActivePrinter = "Acrobat Distiller"
    39.         'Print the File
    40.         .PrintOut FileName:="", Range:=wdPrintAllDocument, item:= _
    41.             wdPrintDocumentContent, Copies:=1, Pages:="", PageType:=wdPrintAllPages, _
    42.             Collate:=True, Background:=True, PrintToFile:=False, PrintZoomColumn:=0, _
    43.             PrintZoomRow:=0, PrintZoomPaperWidth:=0, PrintZoomPaperHeight:=0
    44.         'Wait until the LOG file is created... this means the PDF has just
    45.         'been created
    46.         Do
    47.             DoEvents
    48.         Loop Until Len(Dir("C:\Program Files\Adobe\Acrobat 4.0\PDF Output\Microsoft Word - *.log", _
    49.           vbArchive))
    50.                    
    51.         'Get the created PDF filename
    52.         fName = Dir("C:\Program Files\Adobe\Acrobat 4.0\PDF Output\Microsoft Word - *.pdf", vbArchive)
    53.  
    54.         'Create the PDF Filename out of the DOC filename
    55.         FileName = Trim$(FileName)
    56.         FileName = Left$(FileName, Len(FileName) - 4) & ".pdf"
    57.        
    58.         'Copy the file to the same directory where the DOC was.
    59.         FileCopy "C:\Program Files\Adobe\Acrobat 4.0\PDF Output\" & fName, _
    60.              FileName
    61.         Do Until Len(Dir(FileName, vbArchive))
    62.             DoEvents
    63.         Loop
    64.         MsgBox "The PDF has been created"
    65.        
    66.         'Set the default printer to the original.
    67.         .ActivePrinter = pName
    68.     End With
    69.    
    70.     'Close Word.
    71.      objWord.Quit
    72.    
    73.     ' clean up after our-selves
    74.     Set objWord = Nothing
    75.     Set objDocument = Nothing
    76.  
    77. End Sub

    Let me know if you have any problems.
    Emiliano F. Martín


    If a post has helped you then please Rate it! (and give the user points he/she deserves by clicking on the image).
    Encourage the person who helped you to keep doing it, and give him the points he deserves.


    MP3 Organizer: Freeware to logically organize all your MP3s.

  5. #5
    Frenzied Member JungleMan's Avatar
    Join Date
    Feb 2001
    Posts
    2,033
    I don't have teh Type definitions for "Word", but oh well, I was just wondering not important
    I'm bringing geeky back...

  6. #6

    Thread Starter
    Need-a-life Member Mc Brain's Avatar
    Join Date
    Apr 2000
    Location
    Buenos Aires, Argentina
    Posts
    6,808
    You need the "Microsoft Word 9.0" (or similar) reference for that to work.
    Emiliano F. Martín


    If a post has helped you then please Rate it! (and give the user points he/she deserves by clicking on the image).
    Encourage the person who helped you to keep doing it, and give him the points he deserves.


    MP3 Organizer: Freeware to logically organize all your MP3s.

  7. #7

    Thread Starter
    Need-a-life Member Mc Brain's Avatar
    Join Date
    Apr 2000
    Location
    Buenos Aires, Argentina
    Posts
    6,808
    You may also want to check the registry to see where the files are going to be created.
    VB Code:
    1. Private objWord As Word.Application
    2. Private objDocument As Word.Document
    3.  
    4. Private Sub WritePDF(FileName As String)
    5.     Dim fName As String
    6.     Dim pName As String
    7.     Dim p As Printer
    8.     Dim Branch As String
    9.     Dim Path As String
    10.    
    11.     Branch = "Software\Microsoft\Windows NT\CurrentVersion\Print\Printers\Acrobat Distiller"
    12.     Path = GetSettingString(HKEY_LOCAL_MACHINE, Branch, "Port", "")
    13.    
    14.     If Path = "" Then
    15.         Path = "C:\Program Files\Adobe\Acrobat 4.0\PDF Output\"
    16.     Else
    17.         Path = Left$(Path, InStrRev(Path, "\"))
    18.     End If
    19.    
    20.     On Error Resume Next
    21.     Set objWord = GetObject(, "Word.Application")
    22.        
    23.     ' if error then Word wasn't open
    24.     If Err.Number <> 0 Then
    25.         ' open Word
    26.         Set objWord = CreateObject("Word.Application")
    27.     End If
    28.     Err.Clear
    29.    
    30.     On Error GoTo 0
    31.    
    32.     Set objDocument = objWord.Documents.Open(FileName)
    33.    
    34.     ' activate the document
    35.     objDocument.Activate
    36.    
    37.     'Save the default printer name
    38.     pName = Printer.DeviceName
    39.    
    40.     With objWord
    41.  
    42.         On Error Resume Next
    43.         '  I can not find a way to create the files where I want, and this
    44.         'is the default directory... so I delete all the PDF files, and
    45.         'LOG files first. Make sure this is not a problem.
    46.         Kill Path & "*.log"
    47.         Kill Path & "Microsoft Word - *.pdf"
    48.         On Error GoTo 0
    49.  
    50.         'Set the Acrobat Distiller as the default printer
    51.         .ActivePrinter = "Acrobat Distiller"
    52.  
    53.         'Print the File
    54.         .PrintOut FileName:="", Range:=wdPrintAllDocument, item:= _
    55.             wdPrintDocumentContent, Copies:=1, Pages:="", PageType:=wdPrintAllPages, _
    56.             Collate:=True, Background:=True, PrintToFile:=False, PrintZoomColumn:=0, _
    57.             PrintZoomRow:=0, PrintZoomPaperWidth:=0, PrintZoomPaperHeight:=0
    58.  
    59.         'Wait until the LOG file is created... this means the PDF has just
    60.         'been created
    61.         Do
    62.             DoEvents
    63.         Loop Until Len(Dir("C:\Program Files\Adobe\Acrobat 4.0\PDF Output\Microsoft Word - *.log", _
    64.           vbArchive))
    65.                    
    66.         'Get the created PDF filename
    67.         fName = Dir("C:\Program Files\Adobe\Acrobat 4.0\PDF Output\Microsoft Word - *.pdf", vbArchive)
    68.  
    69.         'Create the PDF Filename out of the DOC filename
    70.         FileName = Trim$(FileName)
    71.         FileName = Left$(FileName, Len(FileName) - 4) & ".pdf"
    72.        
    73.         'Copy the file to the same directory where the DOC was.
    74.         FileCopy "C:\Program Files\Adobe\Acrobat 4.0\PDF Output\" & fName, _
    75.              FileName
    76.         Do Until Len(Dir(FileName, vbArchive))
    77.             DoEvents
    78.         Loop
    79.         MsgBox "The PDF has been created"
    80.        
    81.         'Set the default printer to the original.
    82.         .ActivePrinter = pName
    83.     End With
    84.    
    85.     'Close Word.
    86.      objWord.Quit
    87.    
    88.     ' clean up after our-selves
    89.     Set objWord = Nothing
    90.     Set objDocument = Nothing
    91.  
    92. End Sub

    You would need this BAS (or similar functions) to work with the registry.

    BTW, I've already tried to write a different directory in the registry -to get the files created where I was asking- but the Acrobat Distiller raised an error and didn't created. So... this is the only way I found.
    Attached Files Attached Files
    Emiliano F. Martín


    If a post has helped you then please Rate it! (and give the user points he/she deserves by clicking on the image).
    Encourage the person who helped you to keep doing it, and give him the points he deserves.


    MP3 Organizer: Freeware to logically organize all your MP3s.

  8. #8

    Thread Starter
    Need-a-life Member Mc Brain's Avatar
    Join Date
    Apr 2000
    Location
    Buenos Aires, Argentina
    Posts
    6,808
    However... like I said on other thread:

    Ok, I've already found out how to open Word and print to the PDF Writer to get the PDF I needed. However, does any of you know how to set the security of the PDF? It creates a PDF with these properties:

    Security Method: None
    Open Password: No
    Security Password: No
    Printing: Allowed
    Changing the Document: Allowed
    Selecting Text and Graphics: Allowed
    Adding or Changing Annotations and Forms Fields: Allowed

    I don't want to change all this stuff... but at least the Changing the Document to Not Allowed (for obvious reasons)

    Any ideas?
    Emiliano F. Martín


    If a post has helped you then please Rate it! (and give the user points he/she deserves by clicking on the image).
    Encourage the person who helped you to keep doing it, and give him the points he deserves.


    MP3 Organizer: Freeware to logically organize all your MP3s.

  9. #9
    New Member
    Join Date
    Oct 2002
    Posts
    15
    how come it always loop at this statment when i run?

    Do
    DoEvents
    Loop Until Len(Dir("C:\Program Files\Adobe\Acrobat 4.0\PDF Output\Microsoft Word - *.log", _
    vbArchive))

  10. #10

    Thread Starter
    Need-a-life Member Mc Brain's Avatar
    Join Date
    Apr 2000
    Location
    Buenos Aires, Argentina
    Posts
    6,808
    VB Code:
    1. 'Wait until the LOG file is created... this means the PDF has just
    2.         'been created

    Anyway... Try this instead:
    VB Code:
    1. Do
    2.             DoEvents
    3.         Loop Until Len(Dir(Path & "Microsoft Word - *.log", _
    4.           vbArchive))
    Emiliano F. Martín


    If a post has helped you then please Rate it! (and give the user points he/she deserves by clicking on the image).
    Encourage the person who helped you to keep doing it, and give him the points he deserves.


    MP3 Organizer: Freeware to logically organize all your MP3s.

  11. #11

    Thread Starter
    Need-a-life Member Mc Brain's Avatar
    Join Date
    Apr 2000
    Location
    Buenos Aires, Argentina
    Posts
    6,808
    BTW, let's post the code as it should be:

    VB Code:
    1. Private objWord As Word.Application
    2. Private objDocument As Word.Document
    3.  
    4. Private Sub WritePDF(FileName As String)
    5.     Dim fName As String
    6.     Dim pName As String
    7.     Dim p As Printer
    8.     Dim Branch As String
    9.     Dim Path As String
    10.    
    11.     Branch = "Software\Microsoft\Windows NT\CurrentVersion\Print\Printers\Acrobat Distiller"
    12.     Path = GetSettingString(HKEY_LOCAL_MACHINE, Branch, "Port", "")
    13.    
    14.     If Path = "" Then
    15.         Path = "C:\Program Files\Adobe\Acrobat 4.0\PDF Output\"
    16.     Else
    17.         Path = Left$(Path, InStrRev(Path, "\"))
    18.     End If
    19.    
    20.     On Error Resume Next
    21.     Set objWord = GetObject(, "Word.Application")
    22.        
    23.     ' if error then Word wasn't open
    24.     If Err.Number <> 0 Then
    25.         ' open Word
    26.         Set objWord = CreateObject("Word.Application")
    27.     End If
    28.     Err.Clear
    29.    
    30.     On Error GoTo 0
    31.    
    32.     Set objDocument = objWord.Documents.Open(FileName)
    33.    
    34.     ' activate the document
    35.     objDocument.Activate
    36.    
    37.     'Save the default printer name
    38.     pName = Printer.DeviceName
    39.    
    40.     With objWord
    41.  
    42.         On Error Resume Next
    43.         '  I can not find a way to create the files where I want, and this
    44.         'is the default directory... so I delete all the PDF files, and
    45.         'LOG files first. Make sure this is not a problem.
    46.         Kill Path & "*.log"
    47.         Kill Path & "Microsoft Word - *.pdf"
    48.         On Error GoTo 0
    49.  
    50.         'Set the Acrobat Distiller as the default printer
    51.         .ActivePrinter = "Acrobat Distiller"
    52.  
    53.         'Print the File
    54.         .PrintOut FileName:="", Range:=wdPrintAllDocument, item:= _
    55.             wdPrintDocumentContent, Copies:=1, Pages:="", PageType:=wdPrintAllPages, _
    56.             Collate:=True, Background:=True, PrintToFile:=False, PrintZoomColumn:=0, _
    57.             PrintZoomRow:=0, PrintZoomPaperWidth:=0, PrintZoomPaperHeight:=0
    58.  
    59.         'Wait until the LOG file is created... this means the PDF has just
    60.         'been created
    61.         Do
    62.             DoEvents
    63.         Loop Until Len(Dir(Path & "Microsoft Word - *.log", _
    64.           vbArchive))
    65.                    
    66.         'Get the created PDF filename
    67.         fName = Dir(Path & "Microsoft Word - *.pdf", vbArchive)
    68.  
    69.         'Create the PDF Filename out of the DOC filename
    70.         FileName = Trim$(FileName)
    71.         FileName = Left$(FileName, Len(FileName) - 4) & ".pdf"
    72.        
    73.         'Copy the file to the same directory where the DOC was.
    74.         FileCopy Path & fName, _
    75.              FileName
    76.         Do Until Len(Dir(FileName, vbArchive))
    77.             DoEvents
    78.         Loop
    79.         MsgBox "The PDF has been created"
    80.        
    81.         'Set the default printer to the original.
    82.         .ActivePrinter = pName
    83.     End With
    84.    
    85.     'Close Word.
    86.      objWord.Quit
    87.    
    88.     ' clean up after our-selves
    89.     Set objWord = Nothing
    90.     Set objDocument = Nothing
    91.  
    92. End Sub
    If we are using a Path variable... let's use it in the whole code.
    Emiliano F. Martín


    If a post has helped you then please Rate it! (and give the user points he/she deserves by clicking on the image).
    Encourage the person who helped you to keep doing it, and give him the points he deserves.


    MP3 Organizer: Freeware to logically organize all your MP3s.

  12. #12
    Addicted Member
    Join Date
    May 2002
    Location
    FlyingOffice
    Posts
    178
    Is there any special installation required?

    I can use Acrobat Distiller manually,
    but I cannot see the printer 'Acrobat Distiller' in the printer list

  13. #13

    Thread Starter
    Need-a-life Member Mc Brain's Avatar
    Join Date
    Apr 2000
    Location
    Buenos Aires, Argentina
    Posts
    6,808
    I can't remember. What's most important is that the Distiller Printer is in the list.
    Emiliano F. Martín


    If a post has helped you then please Rate it! (and give the user points he/she deserves by clicking on the image).
    Encourage the person who helped you to keep doing it, and give him the points he deserves.


    MP3 Organizer: Freeware to logically organize all your MP3s.

  14. #14
    Addicted Member
    Join Date
    May 2002
    Location
    FlyingOffice
    Posts
    178
    The problem is I cannot see the Distiller in the printer list

  15. #15

    Thread Starter
    Need-a-life Member Mc Brain's Avatar
    Join Date
    Apr 2000
    Location
    Buenos Aires, Argentina
    Posts
    6,808
    Then something is missing... that code won't help.
    Emiliano F. Martín


    If a post has helped you then please Rate it! (and give the user points he/she deserves by clicking on the image).
    Encourage the person who helped you to keep doing it, and give him the points he deserves.


    MP3 Organizer: Freeware to logically organize all your MP3s.

  16. #16
    Addicted Member
    Join Date
    Aug 2001
    Posts
    164

    PDF File

    This is good with changing .doc to .pdf, what about if I have to save my email message wether its outlook message or netscape message to a .pdf message by selecting File menu>print, and how can you give an a name to the saved .pdf file automatically?


    I think it's possible to save email message to .pdf I have seen this in one of document managment application, but I don't know the code behind it !!!

  17. #17

    Thread Starter
    Need-a-life Member Mc Brain's Avatar
    Join Date
    Apr 2000
    Location
    Buenos Aires, Argentina
    Posts
    6,808
    Me neither... and I don't have time to start trying to do it. I gave you the idea, play with it to get what you need. Sorry.

    By the way... that would be what I would have to do (play with that code), but I neither have the time nor the need to have it done. So, I won't be able to be of much help.
    Emiliano F. Martín


    If a post has helped you then please Rate it! (and give the user points he/she deserves by clicking on the image).
    Encourage the person who helped you to keep doing it, and give him the points he deserves.


    MP3 Organizer: Freeware to logically organize all your MP3s.

  18. #18
    Member
    Join Date
    May 2003
    Posts
    33
    i recieved this error
    c:\prt.vbs(1, 17) Microsoft VBScript compilation error: Expected end of statement

  19. #19

    Thread Starter
    Need-a-life Member Mc Brain's Avatar
    Join Date
    Apr 2000
    Location
    Buenos Aires, Argentina
    Posts
    6,808
    Originally posted by sentme_mail
    i recieved this error
    c:\prt.vbs(1, 17) Microsoft VBScript compilation error: Expected end of statement
    What did you try to do??
    Emiliano F. Martín


    If a post has helped you then please Rate it! (and give the user points he/she deserves by clicking on the image).
    Encourage the person who helped you to keep doing it, and give him the points he deserves.


    MP3 Organizer: Freeware to logically organize all your MP3s.

  20. #20
    Member
    Join Date
    May 2003
    Posts
    33
    i save the file as .vbs and run it.
    is there something missing?

  21. #21

    Thread Starter
    Need-a-life Member Mc Brain's Avatar
    Join Date
    Apr 2000
    Location
    Buenos Aires, Argentina
    Posts
    6,808
    Yes... that code is not VB Script. It's Visual Basic.
    Emiliano F. Martín


    If a post has helped you then please Rate it! (and give the user points he/she deserves by clicking on the image).
    Encourage the person who helped you to keep doing it, and give him the points he deserves.


    MP3 Organizer: Freeware to logically organize all your MP3s.

  22. #22
    Member
    Join Date
    May 2003
    Posts
    33
    how do i run a vb?

  23. #23

    Thread Starter
    Need-a-life Member Mc Brain's Avatar
    Join Date
    Apr 2000
    Location
    Buenos Aires, Argentina
    Posts
    6,808
    With Microsoft Visual Studio
    Emiliano F. Martín


    If a post has helped you then please Rate it! (and give the user points he/she deserves by clicking on the image).
    Encourage the person who helped you to keep doing it, and give him the points he deserves.


    MP3 Organizer: Freeware to logically organize all your MP3s.

  24. #24
    Member
    Join Date
    May 2003
    Posts
    33
    i am acutally look for a vb script which can automatically print a text file which i have exported from the NT event log. do you have any?

  25. #25

    Thread Starter
    Need-a-life Member Mc Brain's Avatar
    Join Date
    Apr 2000
    Location
    Buenos Aires, Argentina
    Posts
    6,808
    Originally posted by sentme_mail
    i am acutally look for a vb script which can automatically print a text file which i have exported from the NT event log. do you have any?
    a "text" file? Man, you're way out in the wrong thread!
    Emiliano F. Martín


    If a post has helped you then please Rate it! (and give the user points he/she deserves by clicking on the image).
    Encourage the person who helped you to keep doing it, and give him the points he deserves.


    MP3 Organizer: Freeware to logically organize all your MP3s.

  26. #26
    Member
    Join Date
    May 2003
    Posts
    33
    where should i post it ?

  27. #27

    Thread Starter
    Need-a-life Member Mc Brain's Avatar
    Join Date
    Apr 2000
    Location
    Buenos Aires, Argentina
    Posts
    6,808
    Originally posted by sentme_mail
    where should i post it ?
    Post a . This thread was discussing how to print a PDF file (with Visual Basic)
    Emiliano F. Martín


    If a post has helped you then please Rate it! (and give the user points he/she deserves by clicking on the image).
    Encourage the person who helped you to keep doing it, and give him the points he deserves.


    MP3 Organizer: Freeware to logically organize all your MP3s.

  28. #28
    Member
    Join Date
    May 2003
    Posts
    33
    i posted it here.
    http://www.vbforums.com/showthread.p...hreadid=246602

    but no answer...

  29. #29

    Thread Starter
    Need-a-life Member Mc Brain's Avatar
    Join Date
    Apr 2000
    Location
    Buenos Aires, Argentina
    Posts
    6,808
    Ok... be patient! Don't garbage this thread anymore... it has nothing to do with what you need.
    Emiliano F. Martín


    If a post has helped you then please Rate it! (and give the user points he/she deserves by clicking on the image).
    Encourage the person who helped you to keep doing it, and give him the points he deserves.


    MP3 Organizer: Freeware to logically organize all your MP3s.

  30. #30
    New Member
    Join Date
    Jun 2004
    Posts
    4

    print dc to pdf using vb.net

    How do it go about doing it. I tried to convert the vb code, but faced a lot of errors. Appreciate the help

  31. #31

    Thread Starter
    Need-a-life Member Mc Brain's Avatar
    Join Date
    Apr 2000
    Location
    Buenos Aires, Argentina
    Posts
    6,808
    I think you should post it in the .Net forums. I've no idea, but should not be that hard since I see nothing that "strange".
    Emiliano F. Martín


    If a post has helped you then please Rate it! (and give the user points he/she deserves by clicking on the image).
    Encourage the person who helped you to keep doing it, and give him the points he deserves.


    MP3 Organizer: Freeware to logically organize all your MP3s.

  32. #32
    MS SQL Powerposter szlamany's Avatar
    Join Date
    Mar 2004
    Location
    Connecticut
    Posts
    18,263
    We install PDF Print Drivers (from Adobe) on our customers machines and a PDF Printer simply appears in the PRINTER collection.

    This requires no programming changes whatsoever - simply print to it like it's another printer.

    I hear there are shareware versions of PDF Print drivers available if the cost of the Adobe is too much.

    Why go through all this to get a output file in .PDF format?

  33. #33
    New Member
    Join Date
    Jun 2004
    Posts
    4

    Errors found..

    Well, i simply need to convert the word doc to pdf using new .net technology. There was no code snippet on this. Anyway thx for the replies. Just wondering because i'm keep getting errors.

    Regards,

    Frank

  34. #34

    Thread Starter
    Need-a-life Member Mc Brain's Avatar
    Join Date
    Apr 2000
    Location
    Buenos Aires, Argentina
    Posts
    6,808
    Originally posted by szlamany
    We install PDF Print Drivers (from Adobe) on our customers machines and a PDF Printer simply appears in the PRINTER collection.

    This requires no programming changes whatsoever - simply print to it like it's another printer.

    I hear there are shareware versions of PDF Print drivers available if the cost of the Adobe is too much.

    Why go through all this to get a output file in .PDF format?
    The code I posted does just that. It changes the active printer to the Acrobat's, prints it and change the active printer to the one that was selected before.
    Emiliano F. Martín


    If a post has helped you then please Rate it! (and give the user points he/she deserves by clicking on the image).
    Encourage the person who helped you to keep doing it, and give him the points he deserves.


    MP3 Organizer: Freeware to logically organize all your MP3s.

  35. #35
    MS SQL Powerposter szlamany's Avatar
    Join Date
    Mar 2004
    Location
    Connecticut
    Posts
    18,263
    Originally posted by Mc Brain
    The code I posted does just that. It changes the active printer to the Acrobat's, prints it and change the active printer to the one that was selected before.
    Sorry - it's a little early here and we are already having customer breakdown all over...

Posting Permissions

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



Click Here to Expand Forum to Full Width