Print Without External Application Starting

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • KAData
    New Member
    • May 2007
    • 2

    #1

    Print Without External Application Starting

    I have a form where the user selects what documents they want to print. I have the program printing just fine using this code:
    [code=vbnet]
    Dim p As New System.Diagnost ics.ProcessStar tInfo()
    p.Verb = "print"
    p.WindowStyle = ProcessWindowSt yle.Hidden
    p.FileName = "C:\filename.pd f"
    p.UseShellExecu te = True
    System.Diagnost ics.Process.Sta rt(p)
    [/code]
    but when I try to print PDF files, Adobe Acrobat Reader starts, which I dont want to happen. Is it possible to not have the external program start when the user hits print?
  • chinu
    New Member
    • Jun 2007
    • 36

    #2
    Originally posted by KAData
    I have a form where the user selects what documents they want to print. I have the program printing just fine using this code:
    [code=vbnet]
    Dim p As New System.Diagnost ics.ProcessStar tInfo()
    p.Verb = "print"
    p.WindowStyle = ProcessWindowSt yle.Hidden
    p.FileName = "C:\filename.pd f"
    p.UseShellExecu te = True
    System.Diagnost ics.Process.Sta rt(p)
    [/code]
    but when I try to print PDF files, Adobe Acrobat Reader starts, which I dont want to happen. Is it possible to not have the external program start when the user hits print?
    Start means in the background right?. In order to print, i think it is necessary to nstantiate the object and maximum u can do is hide or minimize the window.

    Comment

    Working...