printing

How can I detect if there is no more paper in the printer with Java?

How can I detect if there is no more paper in the printer, "paper out" with Java? I don't know if it is possible to do in Java, but I would like to use it if possible. I am using Java on Windows. ...

How to add additional printer drivers (x86/x64) programmatically under Windows XP,2003,7,2008

Hi, I've written an printer driver which works under x86 and x64 MS Windows systems. I also have written an setup which installs the printer driver via AddPrinterDriver and AddPrinter functions. So far, so good. The thing is, if I want to share this printer from an x64 system to an x86 system, the x64 print server needs to have the ad...

Multiview returns to first view

Hi, I have a .net page with a multiview control. In the first "view" I have a form users need to fill in (data is stored in database), a second "view" brings a 'thank you' message and the ID just created. It works ok. The thing is that I added a 'print this page' link in the second "view " so users can print their IDs (they also reciben...

Can i give print option to print webform data in asp.net

I have a webform on which i display all the details of a particular record now i want to give my client print functionality so he can print those detail. Can this be done in asp.net and if yes then how? ...

Java printing & multithread

Hello, I wrote a little snippet called by php to print .postscripts files on a pre-defined network printer. While i print one file only, everything goes well, but when i try to set up a multi-thread printing management to send more then 1 file at once to the printer, only the first one comes out. The problem is that the PrintJobEvent P...

Printing HTML in Python CGI

Hey all, I've been teaching myself python and cgi scripting, and I know that your basic script looks like #!/usr/local/bin/python import cgi print "Content-type: text/html" print print "<HTML>" print "<BODY>" print "HELLO WORLD!" print "</BODY>" print "</HTML>" My question is, if I have a big HTML file I want to display in python (...

Print output in a single line

Hello! I have the following code: >>> x = 0 >>> y = 3 >>> while x < y: ... print '{0} / {1}, '.format(x+1, y) ... x += 1 Output: 1 / 3, 2 / 3, 3 / 3, I want my output like: 1 / 3, 2 / 3, 3 / 3 I searched and found that the way to do this in a single line would be: sys.stdout.write('{0} / {1}, '.format(x+1, y)) Is...

Creating canvas objects at a higher DPI than screen?

I've got a canvas object that I need to be able to create at a higher resolution than what native screen resolution is. I'm using the Flot graphs library, and I'd need to output a graph that looks just as good when it's printed as when it's displayed on screen. The only method I can think of is making the canvas size 3x larger, then sca...

Firefox prints text properly and images reversed

If I print a webpage from Firefox 3.6.6 to my HP deskjet 990cxi printer (USB connection), the text is printed normally, but the images are reversed (mirror image). This hasn't always happened, but seems to have been a "feature" of at least the last few versions of Firefox. If I select the print option for Mirror Image then the image ...

Whether is it possible to indicate the printer to next page in php ?

I am using php language. I project i have the application to be print, It contain two pages. According to the data available the page content may be change, so printout of first page end and second page starting content not to be proper. So i want to know any other way is there, to separate the specific content to be printed from the...

Printing to a remote printer from a website

I would like to be able to print to a number of remote printers from a website. The website runs on a Linux server, and it is the application within the website that generates the print jobs. The remote printers are located at a number of broadband sites. The printers will be serial receipt printers or USB printers. There will most like...

Draw html page using the QPainter

How i can draw html page? QWebView *view = new QWebView(); view.Load(Url("http://www.google.com")); QPrinter printer = new Qprinter(); How I can draw this view? ...

Achieving MS Word print quality in C#

I am writing a small application that prints some stickers to a special printer. When I use MS Word to print some text to that printer (and to an XPS file), the result looks excellent. When I print from C# code with the Graphics object, the text appears to be over-pixelized or over-smoothed. I tried the following hints, but none produc...

set MFC DC to Qprinter

Hi - I was just wondering is that possible to use my existing MFC creadted DC to associate with QPrinter so that it directly uses this existing DC rather creates its own with QPrintDialog?? Does Qprinter also does backing store as Qwidget does?I mean does this creates an offscreen image before printing? Regards, Harris ...

Whether is it possible to indicate the printer to next page?

I am using php language. I project i have the application to be print, It contain two pages. According to the data available the page content may be change, so printout of first page end and second page starting content not to be proper. So i want to know any other way is there, to separate the specific content to be printed from the...

print to remote Comm Port in VB6

i have a software that prints out to a thermal printer connected to the comm port,the code below works well. Open "COM3:" For Output Access Write As #1 Print #1, Space(8) & "FRAKAS LTD" Print #1, Space(7) & "P.O. Box 7678 SHIMONI" ... ... Close #1 Now i want to print on the same comm port but from a different com...

WPF DocumentPaginator and DocumentPage unexpected cropping

I'm trying to print a WPF canvas over multiple pages. I'm perfectly happy with scaling it to fit on the page width, then clipping and translating the canvas for each page; all pretty simple maths. What I don't understand is how I get the dimensions of the printable area, and how to tell the printer where to print to. Whatever I try it ...

Can I save a DMBL layout as a jpeg/png?

Hello, Is it possible to save the layout diagram from a DBML file as a jpeg/png or any other image format? A manager wants to know what we are storing in our database and the print out wasn't enough he wants an electronic version. I know I can use a screen-shot but wonder if there are any other options? I've just thought about printin...

perl split string into 2d array

Okay .. this works ... sub getApSrvs { my %apsrv; my $cluster; foreach $cluster (getClusters()) { $apsrv{$cluster} = [split('\s+', `/$cluster/bin/gethosts -t app|sort -u`)]; } return %apsrv; } ... now how in the ham sandwich do I get this to print like so $cluster --> $hostname okay I added : my %apsrv = getApSrvs(); for...

How to print Smalltalk code from Pharo/Squeak?

What is the best way to print - syntax colored and well formatted - code from Pharo/Squeak on paper? 1) Is there a way to print directly from within Pharo/Squeak? (i use it on macosx) 2) Is there a way to export syntax colored, well formatted code from Pharo/Squak? 3) Are there external tools to color and format a filed out piece of co...