Title: Printing output from a servlet
Hi,
I have a site that displays information to users. The information is presented on several separate web pages. However, the users want the ability to print all the information without going to each page, then hitting the browsers print button. Put
Hi! I want to print one report through IE with my customized Header and
footer.Report's width is large so i want to print it in landscape.I am
generating report using JSP.Please suggest me how to go about it.If any
related example or website is there do suggest me.
thanks in advance,
with regards
the
time it takes to execute print())
- ...
Now, that a StringWriter is used might appear weird, it's the result of me
taking the time printing to the
PrintWriter takes (the original code had an XSLT transformer write directly
into the PrintWriter instead
of into a StringWriter, but w
"Raghava Krishna (CTC)" wrote:
>
> i have a html page.i have an applet inside it ...
>
But do you have a question specifically about servlets?
Servlet-interest is the best place on the web to talk
about servlets. Turning it into a general-purpose Java
programming list defeats the whole purpose
enu
of doc).
My Present Status is:
i could open the doc as well get it printed .but the problem is it
is printing the template as after filling the template it is not saved.how
to save the file after getting filled in servelt file/javascript??
the other problem is the template
rom file menu of
> doc).
> My Present Status is:
> i could open the doc as well get it printed .but the problem is it is
> printing the template as after filling the template it is not saved.how to
> save the file after getting filled in servelt file/javascript??
> the other prob
rom file menu of
> doc).
> My Present Status is:
> i could open the doc as well get it printed .but the problem is it is
> printing the template as after filling the template it is not saved.how to
> save the file after getting filled in servelt file/javascript??
> the other prob
PROTECTED]
Subject: printing a document on click of button
hi all
i have a requirement:
i want a document to be printed on click of a button in the web
page.i.e.it
should not open a word document.it should directly connect to printer
and
the document is to be printed.
pls if anyone knows the logic or
Thanks to all of you
i will try working ur solutions and get back to you.
thanks
raghava
> -Original Message-
> From: Christian Bollmeyer (GMX) [SMTP:[EMAIL PROTECTED]]
> Sent: Tuesday, June 11, 2002 1:05 AM
> To: [EMAIL PROTECTED]
> Subject: Re: printing a docum
a look (www.apache.org).
- Original Message -
From: "Rodrigo Ruiz Aguayo" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, June 10, 2002 12:35 PM
Subject: Re: printing a document on click of button
> You could
ndex9/printstyle.htm
-Tim
-Original Message-
From: Raghava Krishna (CTC) [mailto:[EMAIL PROTECTED]]
Sent: Monday, June 10, 2002 9:59 AM
To: [EMAIL PROTECTED]
Subject: Re: printing a document on click of button
Thanks for ur reply.
can u please tell me how to link VB libraries for O
Thanks for ur reply.
can u please tell me how to link VB libraries for Office.
Thanks in advance
raghava
> -Original Message-
> From: Chen, Gin [SMTP:[EMAIL PROTECTED]]
> Sent: Monday, June 10, 2002 7:18 PM
> To: [EMAIL PROTECTED]
> Subject: Re: printin
PROTECTED]
Subject: printing a document on click of button
hi all
i have a requirement:
i want a document to be printed on click of a button in the web page.i.e.it
should not open a word document.it should directly connect to printer and
the document is to be printed.
pls if anyone knows the logic
You could try to download the file to a hidden frame (or iframe), and once downloaded,
print it.
___
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archive
hi all
i have a requirement:
i want a document to be printed on click of a button in the web page.i.e.it
should not open a word document.it should directly connect to printer and
the document is to be printed.
pls if anyone knows the logic or content present in any sites pls let me
know
thanks in
print.html
-Branden
> hi!
> i don't think that he wanted the client to print out the pages it
> requested, but he wants the server to print something after an event
> happened. in this case printing in a servlet doesn't differ in any way from
> printing in a java ap
hi!
i don't think that he wanted the client to print out the pages it requested,
but he wants the server to print something after an event happened.
in this case printing in a servlet doesn't differ in any way from printing
in a java application. please refer to the java tutoria
hi,
i dont know how can u go about selecting the printer.
but refer to following link to see how i managed printing with servlets on a network
with single printer.
check if thats of any help to u.
Rohan
http://swjscmail1.java.sun.com/cgi-bin/wa?A2=ind0203&L=servlet-interest&
Hello,
I have a server with 2 printers attached to it (a nice one and a normal one),
and I want to, depending on what requests are coming in, have my servlet
print to either printer. My question is, and maybe its offtopic, how do i
print with servlets? As in, actually send data to a prin
9:10 PM
To: [EMAIL PROTECTED]
Subject: Printing the content of a frame
Hi!
Do you know how to invoque the print method of the navigator to print
the content of one of my frames?
I have two frames on my page (left and rigth), and I need to have a
button in the left frame that must print the content o
Hi!
Do you know how to invoque the print method of the navigator to print
the content of one of my frames?
I have two frames on my page (left and rigth), and I need to have a
button in the left frame that must print the content of my right frame
using the print method of the navigator (File..|Pri
I assume you mean
You mean that the client must be able to print it
in his end.
Then the servlet must be able to download the file
and then print locally.
V.T.R.Ravi Kumar,
Engineer, CCX,BHEL, Hardwar,
INDIA
rPrint()<BR>{<BR>document.all.BottomDiv.innerHTML=
innerData<BR>}<BR>
call
the Beforeprint and afterprint function as follows
The
above functions will hide the button while printing
hope
this helps.
regards,
Rohan
DISCLAIMER: Information contained and transmitte
hi,
i have a servlet that generates data and i
want to print these data into hardcopy but i dont have any idea how to code
this.what i want to do is to have a print button that when clicked will give the
user access to the server's printer.is this possible?by the way i'm using
netscape 4.7
hi!
could anyone instruct me how to print specified outputs in a servlet(w/o
using the browser's print options )?
___
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INT
It looks like you are missing a "+" sign. See
below.-Original Message-From: Kwan, William [mailto:[EMAIL PROTECTED]]Sent: Monday,
December 17, 2001 6:26 PMTo: [EMAIL PROTECTED]Subject:
printing html code from servletHi everyone,I'm trying to
create an html page from
[EMAIL PROTECTED]
> Subject: printing html code from servlet
>
>
> Hi everyone,
>
> I'm trying to create an html page from a servlet but I get
> the following
> error:
> expected.
>
> Here is some code:
>
> while (rsmodel.next())
> {
&
Hi everyone,
I'm trying to create an html page from a servlet but I get the following
error:
expected.
Here is some code:
while (rsmodel.next())
{
out.println("" + rsmode.getString(3));
}
out.println("");
^ error
out.println("");
^ error
thanks,
Will
___
You can implement printing in JSPs and Servlets the same way as printing in
regular Java Code.
Use the Printing API.
In my experience, the printing API takes the printing configurations from
the computer it is deployed on. So if the network printer is setup on the
clients computer. I would think
Hi anyone knows about the printing function in servlet or jsp ?? how do i recognise a
particular network printer for printing ??
___
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message
-Original Message-
From: [Your Full Name] [mailto:[EMAIL PROTECTED]]
Sent: Thursday, September 13, 2001 11:29 AM
To: [EMAIL PROTECTED]
Subject: Html Based Printing and Forms
I would like to Format some of my JSP Pages to enable Printing.
Is there a way I can Format these Forms so that
-
From: A mailing list for discussion about Sun Microsystem's Java Servlet
API Technology. [mailto:[EMAIL PROTECTED]]On Behalf Of
Shriranga K Kulkarni
Sent: Thursday, March 01, 2001 9:25 AM
To: [EMAIL PROTECTED]
Subject: Re: Printing on Browser gives following exception.
No I have not used any
To:
>[EMAIL PROTECTED]
> NET> cc:
> Sent by: "A mailing Subject: Printing on Browser
>gives following
> list for discussion exception.
>
t;A mailing Subject: Printing on Browser
gives following
list for discussion exception.
about Sun
Microsystem's Java
Servlet API
Technology."
Hello All,
I am using TOMCAT-APACHE combination to Initialize an swing applet with
servlet and display on the browser. When the page is printed following
exception is being thrown.
Can any one help me in explaining what may be the source of problem and
any possible solution for the same. Thanks i
Hello All,
I have written an applet which has interaction with servlet and
database. When we try to print through the Browser option , it gives an
exception saying that object persistence (serialization) is not present.
Any idea what should be done about this?
The second problem I am facing
HI,
Clear my doubts in RMI. How to write client side program using
Applets make use of RMI concept. We would be writing 3 set of programs. 1)
Server side 2) Interface 3) Client side. My question is how to write
client side program using applets.
Pl help me out.
With lu,
Nithya.S.
___
final output the report is
generating and i am giving printing using from browser file menu.but the
requirement is i have print the pages page by page by not using the browser
option and also the report output must be in landscape format.
for this reports i am using servlets,oracle ,html,javascript
hai everyone,
i am doing report parts using HTML,JAVASCRIPT and SERVLET .
when i get the final output and print the report it is coming
continuously.Is there any option for restricting or to set up page by page
printing (but the settings can be done dynamically, not through browser.
thanks
Status Distribution November 18, 2000 21:22:26
The message regarding "Re: Printing using java.awt.print API's" sent on
November 18, 2000 21:22:26 was sent by
Status Recipient
TypeTo
Native Name [EMAIL PROTECTED]
Status Distribution November 18, 2000 20:16:42
The message regarding "Printing using java.awt.print API's" sent on November
18, 2000 20:16:42 was sent by
Status Recipient
TypeTo
Native Name [EMAIL PROTECTED]
hi subhash,
even the same problem i got.
my problem is , using java.awt.print package we have
the option of drawing in graphics context and printing
the whole screen. what i want is i want to write in
one file and i want to print the file.
is it possible.but i present i am going for third
party
Hi,
I want to print a text in the memory (in a String) in a formatted way i.e.
in different lines. But while printing using java.awt.print package the
whole lot of text is shown more like a paragraph with next line occuring
only after the first line is full.
eg:
I want to print in this way
All:
Do anybody know there are any sample app to use Servlet to send the
printing job to printer at server side?
This job should be fired by browser, the printer could be local to web
server or a network printer. What I am most interested is printing PS/PDF
file from UNIX server and/or PS/PDF
hi!!
I guess you can use HTTP tunnelling..using the Object streams to pass data
from and to the applet from the servlet.
-Original Message-
From: Marcos [mailto:[EMAIL PROTECTED]]
Sent: Thursday, July 13, 2000 5:17 PM
To: [EMAIL PROTECTED]
Subject: printing info
hi,
i would
hi,
i would like to make a servlets to print some information from an
applet.
any suggestions will be pleased.
thanks in advance,
marcos
[EMAIL PROTECTED]
___
To unsubscribe, send email to [EMAIL PROTECTED] and in
Hi All
is there any link to already avaiable classes to generate pdf files from simple
stream or HTML.
regards
Shahzad
___
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SE
Sent: Monday, June 19, 2000 12:55 PM
Subject: Printing Problem
> Hi All
>
> We r to provide web based platform independent printing facility through
> servlets in our current application. But if we simply use HTML then there
is no
> page break type of things and it seems impossibl
Try to use the xml2pdf converter "cocoon" from http://xml.apache.org
With this tool you can generate pdf-files from xml/xsl, so printing will
work better.
-Ursprüngliche Nachricht-
Von: A mailing list for discussion about Sun Microsystem's Java Servlet
API Technology.
Hi All
We r to provide web based platform independent printing facility through
servlets in our current application. But if we simply use HTML then there is no
page break type of things and it seems impossible to provide header and footer
in a proper format. We r using
Oracle Application
Hi.
you dont have to do anything using servlets.
In netscape you can do that using javascript... for example you have a button and
onClick
you just do window.print();
example..
this does not work in explorer... at least ie4.
hope this helps...
Javier
Rahul Desai wrote:
> Hi all,
>
Hi all,
In my application, I have disabled all the toolbars of the browser.I have even
disabled the right click of the mouse using javascript.
On a generated HTML page, I now want to provide a print facility. Whenever the
print button is pressed, I want to print that particular HTML page.C
I will check it out, thanks.
Tom K.
-Original Message-
From: A mailing list for discussion about Sun Microsystem's Java Servlet
API Technology. [mailto:[EMAIL PROTECTED]]On Behalf Of
P.Yesudason
Sent: Friday, April 28, 2000 6:46 AM
To: [EMAIL PROTECTED]
Subject: Re: Printing th
In java we have a class called printerJob , that will do it for you.
Go thru it ..
-Yesudason P
"blueads.com" wrote:
> I would like to have a servlet print a formatted page. Is this possible
> through the LPT1 port? Any examples appreciated.
>
> Tom K.
>
> _
I would like to have a servlet print a formatted page. Is this possible
through the LPT1 port? Any examples appreciated.
Tom K.
___
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "sig
Servlet API Technology."
<[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
cc:(bcc: Ralph B Lynn/ROC/DSI/Danka)
Subject: Re: Printing with HTML
hai sandy
there is a class called printjob in java which takes care of the printing
mahesh
> -Original Message-
> F
j Ritu-SWD-ITIL-UB/Itilmail)
Subject: Re: Printing with HTML
hai sandy
there is a class called printjob in java which takes care of the printing
mahesh
> -Original Message-
> From: Sandy [SMTP:[EMAIL PROTECTED]]
> Sent: Tuesday, April 25, 2000 4:23 PM
> To: [EMAIL PROTEC
hai sandy
there is a class called printjob in java which takes care of the printing
mahesh
> -Original Message-
> From: Sandy [SMTP:[EMAIL PROTECTED]]
> Sent: Tuesday, April 25, 2000 4:23 PM
> To: [EMAIL PROTECTED]
> Subject: Printing with HTML
>
> Hi All,
Hi All,
I am having an HTML file. I want that file to be printed 10 lines per page.
Is that possible with Java stuff.
Can you please help me on this
SR
___
To unsubscribe, send email to [EMAIL PROTECTED] and include in the b
else's computer
remotely (let alone to take over the entire ROOM like your design
suggests:-)
2) If you NEED to implement printing on the client OTHER than the print
button your best chance is a SIGNED Java applet (on a seperate frame, or
perhaps invisible, nobody said applets MUST have a user inte
Printer attached to the m/c running the browser client.
Badri
> -Original Message-
> From: Martin Kuba [SMTP:[EMAIL PROTECTED]]
> Sent: Wednesday, January 05, 2000 5:49 PM
> To: [EMAIL PROTECTED]
> Subject: Re: Printing from HTML /Servlets
>
> JBADRI wrot
JBADRI wrote:
>
> Hi,
>
> We have a servlet that generates a HTML output diplayed on screen.
> We need a capability to print th output on screen in the same format
> to a local printer without using the browsers PRINT option. What should we
> do to implement this functional
Hi,
We have a servlet that generates a HTML output diplayed on screen.
We need a capability to print th output on screen in the same format
to a local printer without using the browsers PRINT option. What should we
do to implement this functionality?
Thanks
Hi,
I'm working with Win32Printers through the Win32Printer Object in a servlet.
This kind of printing is done by a native library that is acessed by
Win32Printer Java Object. Where do I put Win32Printer.dll to be known by the
servlet printing ?
Thanks,
- Original Message -
From: JBADRI <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, December 09, 1999 8:54 AM
Subject: Printing from a Browser.
> Hi,
>
> I have a large output, like a spreadsheet, generated by a servlet and
> rendered to the browser. I
Hi,
I have a large output, like a spreadsheet, generated by a servlet and
rendered to the browser. I want this to be printed so that I get he whole
contents on paper. Should I do something specific ?
Regards
Badri
Infosys Technologies Limited
Phone: 8520261-2012
E-mail: [EMAIL PROTECTED]
_
System.out.println("Malformed URL");
}
}// end of if
}// end of main
}// end of class
Is this what u want ?
Jyoti
-Original Message-
From: Ravachol Pereira [SMTP:[EMAIL PROTECTED]]
Sent: Monday, September 06, 1999 3:31 PM
To
t;[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, September 06, 1999 3:28 PM
Subject: Re: WebSpider, printing the contents of an URL
> This works for me pb... ;-})
>
> public final class TNet {
>
> /**
> Usage:
> StringBuffer result =
What's wrong with the code you've got? That's pretty much what I've done in
the past.
(*Chris*)
- Original Message -
From: Ravachol Pereira <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, September 06, 1999 3:01 AM
Subject: WebSpider, printi
I am trying to do is simply to get the contents of an url (the html) and
> printing it.
>
> If anyone has done this before, please send me some sample code.
>
> This is how far I've gotten:
> ===
> URL url = new URL(urlname);
>
> URLConnection conn = url.openConn
;
return false;
}
- Original Message -
From: Ravachol Pereira <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, September 06, 1999 3:01 AM
Subject: WebSpider, printing the contents of an URL
> Hi,
>
> I am lost in the jungle of urls, urlstreamhandlers and
conte
Hi,
I am lost in the jungle of urls, urlstreamhandlers and contenthandlerfactories.
What I am trying to do is simply to get the contents of an url (the html) and
printing it.
If anyone has done this before, please send me some sample code.
This is how far I've gotten:
===
URL url = ne
eading and writing functions of this class work.The printing
function worked when I tested it outside of the servlet.
However, when the servlet calls this printing funciton NOTHING
happens.A java exception gets thrown that says "Access Denied". The
accessory class is in the s
running NT server 4.0 and Servlet
Exec 2.0.2.
The servlet uses an accessory class I made called
"PrintSummaryStatements". This class reads from a file, writes to
file, and sends the string to the printer.
The reading and writing functions of this class work.The printing
function wor
You could try the following:
1- make your printed data the
result of a get not a post. This way
netscape can re-get it without user
intervention
2 - add an extra parameter
to each request make the value unique (at least over a session) and
ignore it in your servlet. Netscape
doesnt
hi all,
with JDK1.2, can applets print using client's printer without the need of
policy files?
My applet on remote m/c, gets data from the servlet, formats it and prints
it using client's printer. I used to provide permissions using policy file
(created using policy tool). But lately i found that
t for
pagination, headers, and footers, which is the biggest problem with Html
printing.
Try these:
http://www.tdb.uu.se/~jan/html2ps.html
<http://www.tdb.uu.se/~jan/html2ps.html> - converts html to postscript.
You'll need another product to do the postscript to pdf conversion. Try
A
how can ur servlet have "button" ? if u r talking of client's button then
using signedApplets with java plugin.
or using javascript with html.
In both cases u do not need client's printer's info.
We are using signed Applets for printing.
hope this helps..
komal.
&
> Is it possible to obtain information about a client's printer setup
> from the browser that a servlet is running in and then create a method
> and button that will actually print to that printer from a servlet.
>
> In other words, I would like to have a button in my servlet t
Is it possible to obtain information about a client's printer setup
from the browser that a servlet is running in and then create a method
and button that will actually print to that printer from a servlet.
In other words, I would like to have a button in my servlet that once
At 10:17 AM 2/25/99 -0500, you wrote:
>I believe you can use server side includes to solve number 2. Load an shtml
>page into the right frame.
>If you find a more direct way, please let me know.
I did it via HTML in the form tag: setting the target. I think that's what
Rob was talking about. The
ot found with servlets, redirect to frame,
> banded printing
>
> 1. My servlet tries to read a file and write it to the output stream. I
> have
> tried using methods like getCodebase but the servlet looks for the
> servlets directory.. i have tried to configure the same but with littl
9 6:50 AM
> To: [EMAIL PROTECTED]
> Subject: Problems : file not found with servlets, redirect to frame,
> banded printing
>
> Hello All,
>I am new to the mailing list and would appreciate help on the
> following problems i am facing...
>
> 1. My servlet trie
generated (thru ouput
stream) by this servlet to appear in the right frame.. Is there a way to do
it?? Is there any way to ensure that a servlet redirects to a particular
frame on a page ??
3. When i want to print a huge file, the printer is unable to spool them. I
believe banded printing is a solution
84 matches
Mail list logo