This week's book giveaway is in the Reactive Progamming forum.
We're giving away four copies of Reactive Streams in Java: Concurrency with RxJava, Reactor, and Akka Streams and have Adam Davis on-line!
See this thread for details.
Win a copy of Reactive Streams in Java: Concurrency with RxJava, Reactor, and Akka Streams this week in the Reactive Progamming forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Junilu Lacar
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Knute Snortum
  • Tim Cooke
  • Devaka Cooray
Saloon Keepers:
  • Ron McLeod
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Ganesh Patekar

Print Multiple Html Files with single Print Dialog Box

 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi...
I am trying to print multiples html files without opening them using iframes.
1.checkbox are there to select the files to be printed in a list .
2.These checkboxes & Iframes are created dynamically as per the no of files in a directory.
Now able to print these Files but each & evry file prompting new print dialog box,I want a single dialog box for all these files.
Please help me out with this problem...

Code for javascript function is like this :

function check()
{var cb = document.refreshForm.checkbox;
for (var i=0; i < cb.length ; i++)
{
if (document.refreshForm.checkbox[i].checked)
{
var c_value = "";
c_value = c_value + document.refreshForm.checkbox[i].value;
var element= window.frames(c_value);
element.focus();
element.print();
}
}
}


Please suggest me if i can implement this functionality rathr than using JavaScript...
 
Marshal
Posts: 67289
170
Mac Mac OS X IntelliJ IDE jQuery Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"Notepad Expert", please check your private messages for an important administrative matter.
 
Bear Bibeault
Marshal
Posts: 67289
170
Mac Mac OS X IntelliJ IDE jQuery Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please take the time to choose the correct forum for your posts. This forum is for questions on JSP.

For more information, please read this.

This post has been moved to a more appropriate forum.
 
author
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Only way would be to have the serverside generate one document and feed it to the client to be printed.

There is no way to do it via the clientside.

Eric
 
Rishita Khanna
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Eric Pascarello wrote:Only way would be to have the serverside generate one document and feed it to the client to be printed.

There is no way to do it via the clientside.

Eric




Hi.....I am new with this technology.
Please guide me how to work on generating one document serverside.Will you please send me some sample code.
 
Eric Pascarello
author
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What serverside langauge do you have Java?

Eric
 
Rishita Khanna
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Eric Pascarello wrote:What serverside langauge do you have Java?

Eric



Yes I am using Java....Please guide me if it could be done with Java...
 
This tiny ad is wafer thin:
Java file APIs (DOC, XLS, PDF, and many more)
https://products.aspose.com/total/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!