How to print a document (e.g., pdf...

User 470292 Photo


Registered User
19 posts

Hi all,

I want to have a link for a document (pdf or doc file) saved in my server and I would like to click on a link that would automatically bring the print dialog box. I know I can link to a file in VSD but that would open the document. I want to avoid doing that.
Is there any way around it?
As a test, I tried to print the sitemap.xml file:
<a href="sitemap.xml" onClick="window.print();return false"><img src="files/clickhere.jpg"></a>
It did bring the print dialog box but when I clicked print, it printed the page and not the document.
The link to my test page is: www.babybat.co.uk/test.html

Many thanks.

Ricardo
User 364143 Photo


Guest
5,410 posts

I don't think you can open a pdf print dialog without first opening the file.
CoffeeCup... Yeah, they are the best!
User 470292 Photo


Registered User
19 posts

Thank you Tom.

Have something to add? We’d love to hear it!
You must have an account to participate. Please Sign In Here, then join the conversation.