print exe

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Frank

    print exe


    Guys

    I have got an exe which takes a printername and file(s)
    as arguments for printing. This is running fine on the
    local machine (printing to a network printer from the
    local machine)

    Can I put this exe on a server and allow users to print
    on their networked printers. Should I be doing a web
    service for this..?

    How can I provide the exe access to printing from the
    server, what rights do the admininstrators need to give
    to the exe for this. Will they need to use CASPOL.EXE

    I would appreciate any help

    Thanks in advance

  • Ignacio Machin \( .NET/ C#  MVP \)

    #2
    Re: print exe

    [color=blue]
    > Can I put this exe on a server and allow users to print
    > on their networked printers.[/color]

    If you do so the users will have to download the program and execute it
    locally for this probably they will need to select the printer and the
    document, so using command line is not the best solution I think.
    [color=blue]
    >Should I be doing a web
    > service for this..?[/color]

    If so it will be printed IN the server's printer, not in each user's

    I think it will be better to map it in a network share and put a shortcut in
    the desktop, even in this case it would be better if they can select the
    file (and printer) visually.


    cheers,

    --
    Ignacio Machin,
    ignacio.machin AT dot.state.fl.us
    Florida Department Of Transportation


    Comment

    • Frank

      #3
      Re: print exe


      Ignacio,

      thanks for that,
      [color=blue]
      >I think it will be better to map it in a network share
      >and put a shortcut in the desktop, even in this case it
      >would be better if they can select the file (and
      >printer) visually.[/color]

      I have got global users who need to print batch reports
      from a web app on the printers added to their local
      machines, how can I do this..

      Can you suggest any solution for me


      thanks

      Comment

      • Ignacio Machin \( .NET/ C#  MVP \)

        #4
        Re: print exe

        Hi,

        What are you printing ?

        Can you convert it to something like pdf .doc etc ? if so what you can do
        is open a new window with the document and then the user will be able to
        print it from there with no problem.

        cheers,

        --
        Ignacio Machin,
        ignacio.machin AT dot.state.fl.us
        Florida Department Of Transportation


        "Frank" <anonymous@disc ussions.microso ft.com> wrote in message
        news:3ae601c49f 1a$3cf63130$a40 1280a@phx.gbl.. .[color=blue]
        >
        > Ignacio,
        >
        > thanks for that,
        >[color=green]
        > >I think it will be better to map it in a network share
        > >and put a shortcut in the desktop, even in this case it
        > >would be better if they can select the file (and
        > >printer) visually.[/color]
        >
        > I have got global users who need to print batch reports
        > from a web app on the printers added to their local
        > machines, how can I do this..
        >
        > Can you suggest any solution for me
        >
        >
        > thanks
        >[/color]


        Comment

        • Frank

          #5
          Re: print exe


          [color=blue]
          >-----Original Message-----
          >Hi,
          >[/color]
          [color=blue]
          >What are you printing ?[/color]
          I am printing a batch of reports which is basically
          preformatted text,
          [color=blue]
          > Can you convert it to something like pdf .doc etc ? if[/color]
          so what you can do[color=blue]
          >is open a new window with the document and then the user[/color]
          will be able to[color=blue]
          >print it from there with no problem.[/color]

          I see what you mean here, but the users wants
          functionality to select a number of reports by their name
          and the program should go and print the batch of reports
          without further intervention by the user..







          Comment

          • Ignacio Machin \( .NET/ C#  MVP \)

            #6
            Re: print exe

            Hi,


            "Frank" <anonymous@disc ussions.microso ft.com> wrote in message
            news:3b0901c49f 1c$69651770$a40 1280a@phx.gbl.. .
            [color=blue][color=green]
            > >What are you printing ?[/color]
            > I am printing a batch of reports which is basically
            > preformatted text,[/color]

            So it can be converted
            [color=blue][color=green]
            > > Can you convert it to something like pdf .doc etc ? if[/color]
            > so what you can do[color=green]
            > >is open a new window with the document and then the user[/color]
            > will be able to[color=green]
            > >print it from there with no problem.[/color]
            >
            > I see what you mean here, but the users wants
            > functionality to select a number of reports by their name
            > and the program should go and print the batch of reports
            > without further intervention by the user..
            >[/color]

            How they users access the app? IT's a web or win app?
            If it's a web then you have to convert the reports to something that the
            user can print , you could open a new windows with the results and do a
            Print() , it's jus that the printout will not looks very "report" like
            if you use something like Crystal Report you can create some nice formatted
            reports then you can export them to a pdf

            How long do they take to run? if they take a while you could executed them
            in the background and then send an email to the user when the results are
            ready.

            cheers,

            --
            Ignacio Machin,
            ignacio.machin AT dot.state.fl.us
            Florida Department Of Transportation


            Comment

            • Frank

              #7
              Re: print exe


              Ignacio,

              the report is normally in html format,


              A web app generates the complete report but this has to
              happen in the background, I cannot bring up a print
              dialog

              what do you mean by a print() .. Is it the window.print()
              in javascript
              I have tried that and it always brings up the print dialog

              [color=blue]
              >-----Original Message-----[color=green][color=darkred]
              >> > Can you convert it to something like pdf .doc etc ?[/color][/color][/color]
              if[color=blue][color=green]
              >> so what you can do[color=darkred]
              >> >is open a new window with the document and then the[/color][/color][/color]
              user[color=blue][color=green]
              >> will be able to[color=darkred]
              >> >print it from there with no problem.[/color]
              >>
              >> I see what you mean here, but the users wants
              >> functionality to select a number of reports by their[/color][/color]
              name[color=blue][color=green]
              >> and the program should go and print the batch of[/color][/color]
              reports[color=blue][color=green]
              >> without further intervention by the user..
              >>[/color]
              >
              >How they users access the app? IT's a web or win app?
              >If it's a web then you have to convert the reports to[/color]
              something that the[color=blue]
              >user can print , you could open a new windows with the[/color]
              results and do a[color=blue]
              >Print() , it's jus that the printout will not looks[/color]
              very "report" like[color=blue]
              >if you use something like Crystal Report you can create[/color]
              some nice formatted[color=blue]
              >reports then you can export them to a pdf
              >
              >How long do they take to run? if they take a while you[/color]
              could executed them[color=blue]
              >in the background and then send an email to the user[/color]
              when the results are[color=blue]
              >ready.
              >
              >cheers,
              >
              >--
              >Ignacio Machin,
              >ignacio.mach in AT dot.state.fl.us
              >Florida Department Of Transportation
              >
              >
              >.
              >[/color]

              Comment

              • Ignacio Machin \( .NET/ C#  MVP \)

                #8
                Re: print exe

                [color=blue]
                > the report is normally in html format,
                >
                >
                > A web app generates the complete report but this has to
                > happen in the background, I cannot bring up a print
                > dialog
                >
                > what do you mean by a print() .. Is it the window.print()
                > in javascript
                > I have tried that and it always brings up the print dialog[/color]

                Hi,

                Yes, I meant that, and it will always show the printer dialog.

                I don;t know if any way to print it without showing the print dialog, maybe
                with an activeX object you could solve this ...

                Cheers,

                --
                Ignacio Machin,
                ignacio.machin AT dot.state.fl.us
                Florida Department Of Transportation


                Comment

                Working...