Michael Rosello
Michael Rosello

Reputation: 153

Is there a way to create a print function on my asp website?

I'm using asp classic and I want to print my page.It is like a report website I tried saving it as .doc but It is not saving the corrent font size and it also save my css file. Is there any other way to print a webpage?

Upvotes: 1

Views: 400

Answers (1)

woz
woz

Reputation: 11004

The easiest way to print a webpage is by using the standard print dialog provided by the OS. Call it through JavaScript with:

window.print()

If you don't like how that's formatted, add CSS media queries. Or, for the highest degree of precision, programmatically generate a PDF with an appropriate library.

Upvotes: 4

Related Questions