0

How can we print bulk documents from sharepoint site through browser. We have to print the documents through browser means at client side not at server side. The printer is not in the server network. User will select multiple projects (that carries various documents) and click on print button. We have to silently print all the documents in client's printer.

Using this code we can print the document:

<link rel="Alternate" media="print" href="TextFile2.doc" />

<a href="TextFile2.doc" onclick="window.print(true); return false;">print</a>

But the problem with this is it will ask to click on print again and again.

Marek Grzenkowicz
  • 17,024
  • 9
  • 81
  • 111
Ankit
  • 107
  • 1
  • 1
  • 11
  • @MarekGrzenkowicz: They will be stored according to their corresponding document library. for example I have 2 sites - ABC.com and XYZ.com they both have different document libraries. I hope it make sense. – Ankit Dec 06 '11 at 09:36
  • What have you tried so far? I don't think anyone here will design your software instead of you. This is a programming Q&A site, so you should ask a specific programming-related problem that concerns your project. – Ondrej Tucny Dec 06 '11 at 10:38
  • @OndrejTucny: I have tried some vbscript thing on normal asp.net page to print the document.. where I was trying to pass the relative url of the document. and was trying with window.print() – Ankit Dec 06 '11 at 10:44
  • First, edit your question and elaborate on the problem. Second, `window.print()` prints a *web page* but not a *document* stored in a document library. Do you think your browsers *understands* e.g. Word files? – Ondrej Tucny Dec 06 '11 at 10:46
  • @OndrejTucny: print This does work for my browser and I am bemused that how it is able to print this doc. Earlier I was thinking to define a httpmodule which will render the file onto the browser and then I will print.. – Ankit Dec 06 '11 at 11:00
  • Hi Marek, I have edited the question. and about the windows explorer view is not compatible with my approach coz i am already opening a modular popup for selecting the project names which a user want to print. from there I have to pass the project name and using client object model I can get the file I guess (I haven't tried this client object model approach yet. I will try now) and then give it for print. and for other files I will place them into the queue. So that user will be asked only once to select the project and might be another popup for selecting the printer.. – Ankit Dec 06 '11 at 11:17

0 Answers0