Printing to local printer from my asp page

Posted on 2009-04-16
Medium Priority
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
  • 3
  • 2
LVL 28

Expert Comment

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

Author Comment

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

Expert Comment

ID: 24165115
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

ID: 24166250
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

sybe earned 1000 total points
ID: 24166355
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

[Webinar] Cloud and Mobile-First Strategy

Maybe you’ve fully adopted the cloud since the beginning. Or maybe you started with on-prem resources but are pursuing a “cloud and mobile first” strategy. Getting to that end state has its challenges. Discover how to build out a 100% cloud and mobile IT strategy in this webinar.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article describes how to create custom column layout styles for Bootstrap. The article uses 5 columns to illustrate the concept, but the principle can be extended to any number of columns.
Today, the web development industry is booming, and many people consider it to be their vocation. The question you may be asking yourself is – how do I become a web developer?
In this tutorial viewers will learn how to style a corner ribbon overlay for an image using CSS Create a new class by typing ".Ribbon":  Define the class' "display:" as "inline-block": Define its "position:" as "relative": Define its "overflow:" as …
In this tutorial viewers will learn how to embed an audio file in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: : The declaration should display (CODE) HTML5 is supported by the most recent versions of all major browsers…
Suggested Courses

839 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