Printing to local printer from my asp page

Posted on 2009-04-16
Last Modified: 2012-06-21
I have a support/development system on my website which i use as a charging method. I want to be able to print to a local printer for inclusion on the invoice i send my client.
I realise the server-side issues but want to overcome this.
If this is not possible to achieve easily I would like recommendations of an EASY and INEXPENSIVE product that I can purchase to achieve this.
Question by:scamp
    LVL 28

    Expert Comment

    What is wrong with CTRL-P? Or do you want others to print on your printer?

    Author Comment

    I want to be able to print my own design ... not a screen dump
    LVL 28

    Expert Comment

    You could make a special print (ASP-)page for that. Or have a CSS for printing. But how is this related to the issue of printing to your local printer?

    Author Comment

    ok ... presently i read an access database and present relevant datat  to the screen. I want a Print Screen Button that I can utilise to print directly on the printer but not a screen dump.
    I have no idea how to go about it so asking me questions is rather useless ... i need examples or recommendations.
    I have googled all over the place and the general advice is to purchase a module.
    I want to be able to control form feeds, tabls, etc.
    LVL 28

    Accepted Solution

    Probably we misunderstand each other.

    My idea is that every browser has the option to print the current page (CTRL-P, and it is also under the "File" menu").
    That will just print the current page. If you want to have a nice print, you can make an ASP-page that displays the information in a printable way. That is not a screen dump. A screendump is done with the "Print Screen" button, and that is quite different from CTRl-P.

    Also it is possible to have a special CSS-style for printing in the page (which differs from the CSS-stylesheet for display on the screen).

    This solution is so simple, that nobody writes a manual for that. Only people who want to make money advertize a "module" which you then can purchase.

    And even, if you are not totally satisfied with the output of the printable ASP page, you can always copy/paste it into an office document and do some editing and formatting.

    Copy/paste into an office document goes like this:
    CTRL-A on the page in the browser will select the whole page
    CTRL-C will copy that to the clipboard
    Opening a new office document and then doing CTRL-V will paste the contents of the clipboard into your new document.


    Featured Post

    Free Trending Threat Insights Every Day

    Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

    Join & Write a Comment

    "I want to put my photos online, but I don't want them stolen.  What settings should I use?" When You Put Photos Online First and foremost, any digital file published on the WWW can be copied, stored, modified, retransmitted, etc.  Remember Naps…
    Things That Drive Us Nuts Have you noticed the use of the reCaptcha feature at EE and other web sites?  It wants you to read and retype something that looks like this.Insanity!  It's not EE's fault - that's just the way reCaptcha works.  But it is …
    In this tutorial viewers will learn how to position items using CSS's three positioning types Create a new HTML document with an internal stylesheet.: Create another div in CSS and name it Absolute : Type "position:absolute;" and "top:10px; left:50p…
    The viewer will receive an overview of the basics of CSS showing inline styles. In the head tags set up your style tags: (CODE) Reference the nav tag and set your properties.: (CODE) Set the reference for the UL element and styles for it to ensu…

    734 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    17 Experts available now in Live!

    Get 1:1 Help Now