pdf printing using ProcessStartInfo

Ask a Question related to ASP.NET Security, Design and Development.

  1. #1

    Default pdf printing using ProcessStartInfo

    I am trying to print pdf documents from my Intranet ASP.NET application. I am using the code listed below. The code works fine when run from a console or windows application but nothing happends (no printing and no exception) when its executed from an ASP.NET app. The code is suppose to print to the users default printer, so I figured it was running under an incorrect security context, so I turned on impersonatation, but that made no difference

    An ideas
    Regard
    Sa

    Dim p As New System.Diagnostics.ProcessStartInf
    p.Arguments = "/p /h " & sPathFil
    p.FileName = "C:\Program Files\Adobe\Acrobat 6.0\Reader\AcroRd32.exe
    p.UseShellExecute = Tru
    Dim process As New System.Diagnostics.Proces
    process.Start(p)
    Sam Guest

  2. Similar Questions and Discussions

    1. Freehand printing - right margin decreases when printing multiple copies of file.
      I'm using Freehand mx. Everytime I print more than one copy of a file, the right margin decreases. Thus, if I print five or six copies of a file,...
    2. Printing Dynamically Insantiated MovieClips (multi-page printing)
      I can create multiple pages with just one prompt with new PrinJob() object in Flash MX2004; but ... .... when I try to addpages which is one...
    3. Printing without showing the printing dialog window
      hey - did you ever figure out a solution to the printing without dialog issue? i'm trying to get around the same problem myself. thanks! -jason
    4. ASP.Net permission problem on ProcessStartInfo?
      Just to make sure that I wasn't doing something stupid I've tried getting the current user name a couple of ways: If I check...
    5. Printing a external text file or printing a text field cast member...
      use BuddyApi Xtra to use external app. for print a file like MSWord,
  3. #2

    Default Re: pdf printing using ProcessStartInfo

    It is not free but you could try clprint ([url]www.commandlinepdf.com[/url]). It has more features than printing from the command line using acrobat.
    markus Guest

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139