Results 1 to 7 of 7
Thread: Printing to browser
- 07-06-2011, 01:21 AM #1
Member
- Join Date
- Mar 2011
- Posts
- 23
- Rep Power
- 0
- 07-06-2011, 02:32 AM #2
Can you explain this?to print this through the browser?
Is the output to be read by the browser? What is the browser supposed to do with it?
Normally browser's either read html files from a disk or ask servers for some html.
Or is the output do be displayed in an applet being hosted by the browser?
Or do you want an applet running in a browser to be able to user the local printer?
- 07-06-2011, 03:43 PM #3
Member
- Join Date
- Mar 2011
- Posts
- 23
- Rep Power
- 0
Sorry,
I have a ByteArrayOutputStream. I do not want to display what is whitin the ByteArrayOutputStream to the screen but use the browsers print functionality to print it.
For instance in IE if you click file > print I want to be able to send the ByteArrayOutputStream to that browser functionality.
Do you know if this is possible?
Thanks
- 07-06-2011, 03:48 PM #4
What does the browser's "Print" button print?
Is it the contents of a rendered HTML that is being shown?
Are you asking: If there is a way to tell the browser to print something else besides what it is showing in its window?
Are there any browser plugins that can intercept the Print button press and do their own thing?
- 07-06-2011, 04:00 PM #5
You could possibly code a button on your webpage that prints the byteoutputstream, but I don't think you can make the browser only print that using its built in print function.
- Use [code][/code] tags when posting code. That way people don't want to stab their eyes out when trying to help you.
- +Rep people for helpful posts.
- 07-06-2011, 06:43 PM #6
Member
- Join Date
- Mar 2011
- Posts
- 23
- Rep Power
- 0
tahnsk again for your reply.
I found that if I use iText and the the line:
it will do what I need.Java Code:com.lowagie.tools.Executable.printDocument("c:/test.pdf");
However I want to do this without a file as I do not want to save it. I need to find a way to print with a stream.
Thanks again
- 07-07-2011, 10:00 AM #7
Moderator
- Join Date
- Apr 2009
- Posts
- 10,481
- Rep Power
- 16
Use the Java Print Service?
Of course we still have no idea where you are planning on printing from...
Similar Threads
-
printing string backwards and printing every other
By droidus in forum New To JavaReplies: 22Last Post: 03-10-2011, 09:17 AM -
Web Browser
By rao2141 in forum New To JavaReplies: 4Last Post: 10-25-2010, 12:04 PM -
SWT browser help
By MarkWilson in forum SWT / JFaceReplies: 1Last Post: 04-07-2009, 10:56 AM -
Browser help
By MarkWilson in forum Advanced JavaReplies: 5Last Post: 09-20-2008, 11:20 AM -
how to get url from browser
By srinivas reddy in forum New To JavaReplies: 0Last Post: 02-08-2008, 07:46 AM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks