printing

Java - save Printjob or Simpledoc as Image

Hi, I've written a programm in java for printing images, barcodes and text .. now i've been asked wether i can spool the data to an file too .. is it possible to do this? (for example convert the simpledoc to jpg or so) DocPrintJob job = pebble.createPrintJob(); PrintRequestAttributeSet aset = new HashPrintRequestAttributeSet(); aset...

What options are available to developers for printing to a dedicated label printer?

Our business uses custom internal software to create shipping labels to be printed on large high-speed label printers. What options are available to developers (libraries, services, full-blown-software, etc.) for assisting in the process of creating a custom-formatted label and sending it to a dedicated label printer? More background...

How to start a System.Diagnostics.Process in C#?

when i run this code : Process printjob = new Process(); printjob.StartInfo.FileName = "file.html"; printjob.StartInfo.UseShellExecute = true; printjob.StartInfo.Verb = "print"; printjob.StartInfo.CreateNoWindow = true; printjob.StartInfo.WindowStyle = ProcessWindowStyle.Hidden; pr...

How to find which computer send the print job?

I'm creating a postscript printer for windows 7 which will accept print jobs and forward them to real printers. It will be shared in the LAN and can receive print jobs from LAN computers. I want to find out from which computer a print job came from before forwarding them to a printer. How can I do this? Is the details available in the pr...

Where can I find resources on developing a PostScript printer for Windows 7

I'm developing a virtual printer to accept print jobs and route them to real printers in a LAN. I'm hoping to create a postscript printer to act as a shared virtual printer to accept print jobs from the LAN, I hope to develop it through ghostscript and redmon. If you can please let me know any online resources, examples or any tutorials...

Print in Landscape Mode (Rotate DataGrid)

Hello, i want to print something in Landscape Mode. Is there any Option to do this? Or must I create a Vertical Page and rotate all Controls? if there is no Option for Landscape Mode, how can i Rotate a DataGrid 90° ? i hope we can finde a solution... Thanks. ...

How to use EPSON Status API

I'm working with an EPSON Receipt POS Printer (TM-T70) on Windows and need to know if the printer is online or offline, low or out of paper, the cover is open, etc. From what I understand, the Status API is bundled with the EPSON Advanced Printer Driver. What I can't figure out is how I can work with it. I can't find any useful document...

Weird Error in C++ Program: Removing Printout Breaks Program

This is a very strange problem... removing the cout in the function below causes it to stop printing the correct/expected results and printing garbage values. (i.e. it still RUNS the data it outputs, though, is wrong). Any ideas? bool extract_tension(std::vector<double> &interfacial_tension_trap, std::vector<double> &interfacial...

Programmatically set Pages per Sheet (N-Up) option when printing in Windows

I need a good way to programmatically set the Pages per Sheet setting when printing. I know that a user can select this option via a printer settings dialog and that I could make such a dialog display if I wanted to. But in the context of the program I'm working on, I need this to be selected by the software itself without requiring to ...

print the whole xcode-project as a pdf for documentation-purpuose

is it possible to print all the source-files (and better also the class-model and .plists) in one step ? i even cant find any other osx-editor, that allows to print multiple files, but the project is relatively big to print each thing per hand. to easily push the files to any printer-icon, what i have read, is not possible, because ther...

Printing in IE does not show changes made with JS

I'm working on a legacy application that has tabbed interfaces using Tabstrip and MultiPage control. The tabs are all loaded at once and then when you click on one a postback does not occur to switch to the tab. If a user switches to another tab and prints, they see the first tab in the print, not the one they've changed too. Short fo...

How to determine whether to plot to printer or file

In AutoCAD, I use the PlotSettingsValidator.GetPlotDeviceList method to get all the possible plotters. The user then selects one of those plotters. When I go to plot the document, the PlotEngine.BeginDocument method expects one parameter that tells AutoCAD whether or not it should plot to file and another parameter with the file name. ...

Notepad++ color printing or alternatives

I'm trying to print some source code using notepad++ and I'm hoping to be able to keep keyword highlighting and styling on some lines (background color ) I thought as long as I have WYSIWYG selected on the printing preferences i would get just that..what I see. But it prints in black and white. any idea why? If it's not possible for np...

Programatically print multiple copies from command line

My application generates between 35 and 55 PDF files of which I have to automatically print four copies. All these files are in a single folder. My requirement is to use a batch file to print four copies of each file. I have Adobe Acrobat Reader installed. How do I do this? ...

How to only show certain parts with CSS for Print?

I have a page with lots of data, tables and content. I want to make a print version that will only display very few selected things. Instead of writing another page just for printing, I was reading about CSS's feature for "@media print". First, what browsers support it? Since this is an internal feature, it's OK if only the latest brow...

Missing ZoomOut on PrintPreview

Hi. I'm using code from http://www.codeproject.com/KB/printing/print_preview.aspx to initiate Print Preview for my dialog application. My application is a VC++ 6.0 app that does not use the CView architecture at all. I have managed to display Print Preview window and Zoom In works but the Zoom Out button always remains disabled. Does an...

Printing text from silverlight application

Hi I'm trying to print a report (just text in columns) from my Silverlight 4 application. The only way I know about is to use PrintDocument and set the PageVisual to a framework element showing the report. However, this results in an insanely large print job (like 120 MB). This is not what my customer wants. Is there any other solution? ...

Fortran debugging print statement affects program flow

I have a program which iterates over an array, deterministically making new row-vectors which it then appends to the array. At each iteration the norm of the vector is taken, to ensure it's not a zero vector. If it is zero, the program stops. There was a bug whereby the third iteration would cause the vector to go to zero. In looking ...

Read printer pool to get number of pages being printed

I have a network printer in the classroom lab. I'd like to keep record of how many pages of each student has printed. I want to know how can I read the printer pool to get the number of pages, when a student prints. Here's what I have in mind: Write a Windows service to get: User logged in name Number of printed everytime they print th...

Retries in Java printing?

if you run the following code(from http://www.javacommerce.com/displaypage.jsp?name=printcode.sql&amp;id=18252), both pages are called twice class PrintObject implements Printable { public int print (Graphics g, PageFormat f, int pageIndex) { System.out.println("Page "+pageIndex); Graphics2D g2 = (Graphics2D) g; // Allow use of Java 2 g...