Printer margin and orientation settings from ASP

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

    Printer margin and orientation settings from ASP

    Hi everybody,

    sorry for my English first of all.
    I've an ASP page (ASP 3.0) used on an intranet which fill up some particular
    Mail sheets getting data from a database.
    Those pre-compiled sheets are then showed in IE 6 for checking and then have
    to be printed.
    To correct printing the sheets I have to change the print margins and paper
    orientation from IE 6 settings.
    Reading around it looks like I can't change IE 6 print settings without
    using C++ (which I don't know), therefore I tried using different ActiveX
    Components (such ad aspPrint.dll or ARPrint.dll) but I can't success. When I
    try using them, mainly, I got generical errors relative the printer (the
    error descriptions doesn't give any deep information, just something like
    "problems with the printer" messages or similar) on the lines where I should
    set the "Printer Name" and/or "Printer Driver Name" properties (required
    settings, not optional settings). I tried setting those properties with all
    the "names" I've been able to get from the system (XP Pro SP2) from
    Printers, Control Panel, even from the Registry, but nothing is good for
    them.
    Is there someone on the NG who already fixed those problems and can help me?
    Thanks in advance.

    Ciao
    Giovanni

    P.S. I even thought to write by myself such that ActiveX Component from
    Visual Basic 6.0, using the VBs Printer object which exposes some methods to
    get the default printer of the system. What do you think about it? Someone
    has experience on that matter? There are some problems with security
    settings or something like that?


  • Evertjan.

    #2
    Re: Printer margin and orientation settings from ASP

    Giovanni Benedetti wrote on 28 Sep 2006 in
    microsoft.publi c.inetserver.as p.general:
    I've an ASP page (ASP 3.0) used on an intranet which fill up some
    particular Mail sheets getting data from a database.
    Those pre-compiled sheets are then showed in IE 6 for checking and
    then have to be printed.
    ASP is a serverside platform for applying vbscript or j[ava]script on the
    server to dynamicly render html stream to a client browser.
    To correct printing the sheets I have to change the print margins and
    paper orientation from IE 6 settings.
    Since ASP only influences the content of the above client stream, it cannot
    do what a static html steam cannnot do on the client, and so it cannot
    change the client's printer settings.

    ASP could fire a programme on the server for dedicated server prnting,
    I suppose.
    [..]
    --
    Evertjan.
    The Netherlands.
    (Please change the x'es to dots in my emailaddress)

    Comment

    • Giovanni Benedetti

      #3
      Re: Printer margin and orientation settings from ASP

      >I've an ASP page (ASP 3.0) used on an intranet which fill up some
      >particular Mail sheets getting data from a database.
      >Those pre-compiled sheets are then showed in IE 6 for checking and
      >then have to be printed.
      >
      ASP is a serverside platform for applying vbscript or j[ava]script on the
      server to dynamicly render html stream to a client browser.
      >
      >To correct printing the sheets I have to change the print margins and
      >paper orientation from IE 6 settings.
      >
      Since ASP only influences the content of the above client stream, it
      cannot
      do what a static html steam cannnot do on the client, and so it cannot
      change the client's printer settings.
      >
      ASP could fire a programme on the server for dedicated server prnting,
      I suppose.
      >
      Thank you for your answer.

      Sorry, surely I've not been clear enough on my post.
      I know ASP can't manage client site settings. The ActiveX Controls I
      mentionned (aspPrint.dll or ARPrint.dll) can only print on server but,
      dueing we are talking about an intranet, that's not a problem for me. My
      problem is I can't get that controls working, neither on server.
      Those controls still doesn't accept the "printer name" and "printer driver
      name" property values they required to me. The reason of my post is just for
      getting help from someone who already used such controls or similar
      controls.

      But please also consider, even ASP is a serverside technolgy, I could
      include a client side ActiveX Control through the <objecttag on an htm
      page and call that page from an asp page trying that way to manage the
      printer settings. Is this correct?

      Thanks again for your answer

      Ciao
      Giovanni


      Comment

      • Evertjan.

        #4
        Re: Printer margin and orientation settings from ASP

        Giovanni Benedetti wrote on 28 Sep 2006 in
        microsoft.publi c.inetserver.as p.general:
        Sorry, surely I've not been clear enough on my post.
        I know ASP can't manage client site settings. The ActiveX Controls I
        mentionned (aspPrint.dll or ARPrint.dll) can only print on server but,
        dueing we are talking about an intranet, that's not a problem for me.
        My problem is I can't get that controls working, neither on server.
        Those controls still doesn't accept the "printer name" and "printer
        driver name" property values they required to me. The reason of my
        post is just for getting help from someone who already used such
        controls or similar controls.
        Perhaps the printers are not accessable under the server's iis user
        security?
        But please also consider, even ASP is a serverside technolgy, I could
        include a client side ActiveX Control through the <objecttag on an
        htm page
        An asp page, and a html page are the same in that sense.
        they both render a html [and sometimes the same] stream to the client.
        and call that page from an asp page trying that way to manage
        the printer settings. Is this correct?
        No, because that is not a asp problem,
        you will have to ask in a clientside NG.

        An exagerating example:

        <%
        response.write "<imgh src='blah.jpg'> "
        %>

        Not showing that jpg clientside surely is not an asp problem?



        --
        Evertjan.
        The Netherlands.
        (Please change the x'es to dots in my emailaddress)

        Comment

        Working...