printing

Good rules for setting up print css?

I'm looking for any suggestion/rules/guides on making a decent print css for when a webpage is printed. Do you have any to offer? ...

Change an image to text via CSS for printing?

Lets say I have a header banner on a webpage I'm about to print. Instead of wasting someone's ink printing the entire block of the image, is there a way via css to replace the image with text of H1 size? ...

Lines get trimmed when Printer.Print to a "Generic Text Only" printer

I am maintenance a old vb6 application that print ZPL-II. I just find out that it has a bug if I print long lines to the printer by "Printer.Print", the lines will be trimmed to first 89 bytes/line only. It works perfect and keep lines as it is when I use Print or Copy in DOS to LPT. Where does this behaviour come from? How can I fix i...

How do I write raw printer code to a windows printer share from ruby?

Using java, minus the exception handling, it is as simple as FileOutputStream ostream = new FileOutputStream("\\\\host\\share"); PrintStream printStream = new PrintStream(ostream); printStream.print("HELLO PRINTER"); printStream.close(); ostream.close(); ...

console print w/o scrolling

hey guys i seen console apps print colors and seen apps such as ffmpeg print text over itself instead of a new line. How do i print over an existing line? i want to display fps in my console app either at the very top or very bottom and have regular printfs go there and scroll normally -edit- I need this for windows but this is meant to...

Simplest way to print an array in Java

What's the simplest way of printing an array of primitives or of objects in Java? Here are some example inputs and outputs: int[] intArray = new int[] {1, 2, 3, 4, 5}; //output: [1, 2, 3, 4, 5] String[] strArray = new String[] {"John", "Mary", "Bob"}; //output: [John, Mary, Bob] ...

Print html document from Windows Service in C# without print dialog

Hi, I am using a windows service and i want to print a .html page when the service will start. I am using this code and it's printing well. But a print dialog box come, how do i print without the print dialog box? public void printdoc(string document) { Process printjob = new Process(); printjob.StartInfo.FileName = document; ...

How to get dialog result from WebBrowser.ShowPageSetupDialog

I'm using a WebBrowser control in my Visual C# (.net 2.0) application. Now I'd like to add a print button which shows the page setup dialog and then directly prints when the user presses the OK button or cancels the printing when the user presses the cancel button. However WebBrowser.ShowPageSetupDialog doesn't return DialogResult, but j...

WebBrowser control: How to overwrite URL property

This is a bit special: I'm loading some HTML in string form into the WebBrowser control via the DocumentText property. Now when I print the page with a PDF printer (Bullzip PDF Printer in my case) it always takes the URL as document name which is "about:blank". Is there any way to change this to another value by either changing the URL p...

Print html document from Windows Service without print dialog

I am using a windows service and i want to print a .html page when the service will start. I am using this code and it's printing well. But a print dialog box come, how do i print without the print dialog box? public void printdoc(string document) { Process printjob = new Process(); printjob.StartInfo.FileName = document; p...

Enterprise-grade template printing system

Hi. I'm looking for an enterprise-grade template printing system. I'm interested in every software I can get my hands on to evaluate. Commercial or not. What I need - a separate system ready to receive tags in order to print (digital or paper) a template (like a contract, invoice, etc). Templates should be managed by the same software....

Business reporting with per-page print control

Does anyone know of a reporting tool that allows for controlling the print job on a page by page basis? Specifically, I need to be able to insert escape sequences to the printer. The closest I have found is ActiveReports. It provides an interface like this: SystemPrinter sp = new SystemPrinter(); sp.StartJob("jobname"); foreach(Pag...

Best Way to Automate Adding Text to an Image and formatting for Printing?

Here's what I have: Quarter Sheet Flyer (4 per page) as a PSD or JPG Text file with one entry of text per line. What I want to do: Print out 100 flyers (on 25 pieces of paper) Somehow automate the process of adding the text to the image, either via some scripting language or a Photoshop automated task. Then format the pages to ...

Printing from web applications

How do you generate paper-prints from a web application? Specifically I am thinking about more complex paper documents like diplomas, invoices and contracts. Variable number of pages with frames, tables, logos and headers/footers. Today I use custom forms and CSS for certain things and iTextSharp for others (I work with asp.net and MS-...

"Operation not supported" and "Printer selected is not valid" errors while printing

Hello, Hopefully somebody will be able to help. In my Delphi 7 application small percentage of users report errors when printing and I'm trying to resolve this with last of them. I'm slightly limited when it comes to testing (as user is physically distant and we are working it out via e-mail), but I get some additional information from ...

how to force Java print graphics in 300dpi

as I googled for problem, somehow java printing API is crippled with limitation that all pictures sent to printer must be printed in 72dpi resolution. We are using jasper report to print documents and no matter how big barcode we draw, barcode reader won't scan it.. any similar experiences? How to solve this issue? ...

.NET Printing multiple pages of diferent data

In my app I have serveral forms that print specific data. For accomplish that I use the PrintDocument PrintPage Event. If one report has more than 1 page... I set the hasMorePages flag to true... and the event is fired again and it is my responsability to continue printing from where I was at the end of the last page. That is correct. ...

IE7 doesn't print full image?

i have an jpg where the height is larger than a regular 8.5x11 piece of paper (the height is around 2000px) here is the link http://i39.tinypic.com/121d7ur.jpg so obviously when you try to print this picture its going to print on more than 1 piece of paper ....however when i try to print the page (or even go to print preview)...it only...

Delphi Printing Techniques

Where can I find a good resource for adding print capabilities to my program? I found this page: http://efg2.com/Lab/Library/Delphi/Printing/index.html but it hasn't been updated in 5 years, and I'd like to know if, with Delphi 2009, StretchDIBits is still preferred to StretchDrawMap, how to best support pagination, preview, etc. To da...

Web pages to print media -- solutions?

I've been a big fan of MediaWiki and similar wiki-based text editors. I like the ability to quickly add text, collaborate, and share. However, there's always still the need for nicely formatted print output. Things like headers and footers (that say what I want them to say), page breaks, margins, etc. Most solutions I've seen involve so...