printing

Receipt printer?

I am developing a software which require to print receipts. What is the most common type of receipt printer? Are there any industry standards for receipt printer API? Are there any .net library for that? Tried to find but didn't find anything. ...

Hide header and footer when printing from Internet Explorer using Javascript or CSS

When I print a webpage from Internet Explorer it will automatically add a header and footer including the website title, URL, date, and page number. Is it possible to hide the header and footer programatically using Javascript or CSS? Requirements: works in IE 6 (no other browser support necessary as its for an Intranet) may use Acti...

IE Add-on to Bypass Print Dialog - Where to Start?

I need to write an add-on/plugin for IE 6/7 that will intercept any Javascript print() call and automatically print the page on the default printer, bypassing the standard print dialog. Unfortunately I know very little about Windows or IE programming (I come from the land of Cocoa), so I'm at a bit of a loss as to where to begin. I think...

print on dot matrix printer in .net

anyone can please tell me the code how to print documents on dot matrix printer in C# windows application. ...

.NET server based PDF generation

I'd like to dynamically generate content and then render to a PDF file. This processing would take place on a remote hosting server so using virtual printers etc is out. Does any have a recommendation for a .NET library (pref C#) that would work? I know that I could generate a bunch of PS code and package it myself but I'd prefer somet...

Checking for devices on LPT/parallel port

I'd like to require that a line printer be attached to the parallel port (and turned on!) before running my application. I had found code to check a particular line on the LPT for a particular level that was supposed to indicate that a printer was there and "ready", but I got inconsistent behavior with that, even between different print...

Client side report printing from PHP web apps

I was looking for a solution for client side printing of reports and pre formatted forms from a PHP web based app. Note that these are not printing of HTML pages. Rather nicely aligned fixed formated Receipts, Order Forms, Ledger etc. Something that I have though of. Using PDF: Is there a simple one click way to print the report from c...

Print information in "test mode" but not in "normal execution"

I am using an application in c++ that uses a special dprintf function to print information, this is an example: dprintf(verbose, "The value is: %d", i); What is doing is when I define verbose for test purposes then I print the information and when I am working in normal execution I do not define it and I do not see useless information...

win32 C++ printing PRINTDLGEX not declared?

I am trying to figure out how to print in C++. I want to get the device context using the PrintDlgEx function, which needs a PRINTDLGEX structure. However, I cannot create a PRINTDLGEX because it says it's undeclared. I have included the Commdlg.h and Windows.h and linked the Comdlg32.lib, but all to no avail. Is there something I'm miss...

Is there a better layout language than HTML for printing?

I'm using Python and Qt 4.4 and I have to print some pages. Initially I thought I'd use HTML with CSS to produce those pages. But HTML has some limitations. Now the question is: is there anything that's better than HTML but just (or almost) as easy to use? Additionally, it should be GPL-compatible. Edit: kdgregory & Mark G: The most o...

Printing a series of images to exact dimensions

I'd like to script printing of a series of photographs, but to exact dimensions. (e.g. all jpegs in dir /tmp/printing, at 1.5" x 1.0", 6 to a page) I happen to have my hands on a Ubuntu Linux box and a deskjet printer (hp5150) but could probably use Windows or possibly get another printer if absolutely required. I'm reasonably familiar...

Windows xp printer queue issues

I have a C# application (.NET 3.5 SP1) that I am printing serial numbers for product for a manufacturing company. I am using Active Reports 3 (ver. 5.2.385.2) to print these labels. However, when the printer(Zebra TLP 3842) has an issue, it seems like the printer queue reprints the print job. This causes duplicate serial numbers to be ...

Can I force an HTML document to be one page long?

I am generating a document from HTML. Is there any way to force the HTML page to be one rendered as one printed page long? I've done most of the page with <table> and <div> tags. ...

Print contents of a modal popup

I have an application that shows a list of items. The user can click on an item and see its details in a modal popup (centered DIV, shown using JavaScript). I need to have a button on that popup that will allow the user to print out the contents of the modal popup only. This is for an internal application that needs to work in IE7+ onl...

Where can I find documentation and/or examples of working with TMetafile and TMetafileCanvas?

As I'm working to add custom printing to my application, I've settled on using TMetafile to create the pages, then using it to preview &/or print, but I'm finding the documentation lacking. Are there any good resources for learning the ins and outs of working with TMetafile and TMetafileCanvas? ...

IE BHO - Bypass Printer Dialog

I'm writing an add-on to bypass the printer confirmation dialog in C++. I can successfully intercept a print call, however when I try to print the document, the dialog still comes up. I'm catching the event in: STDMETHOD(Exec)(const GUID *pguidCmdGroup, DWORD nCmdID, DWORD nCmdExecOpt, VARIANTARG *pvaIn, VARIANTARG *pvaOut) and sendi...

How will you print a character without library functions in C ?

If for example I should not use standard library functions like printf, putchar then how can I print a character to the screen easily. Is there any easy way of doing it. I dont know much about system calls and if I have to use them then how? So can any one advice an easy way of printing a character without using library functions?? Than...

Print <div id=printarea></div> only?

How do I print the indicated div (without manually disabling all other content on the page)? I want to avoid a new preview dialog, so crating a new window with this content is not useful... The page contains a couple of tables, one of them contains the div I want to print - the table is styled with visual styles for the web, that shoul...

StretchBlt fails when printing

I have a chart (in bitmap format) that I'm trying to render to a printer using StretchBlt. When drawing to the screen, StretchBlt works fine. When drawing to a CutePDF printer, it returns 0, sets the last error to ERROR_INVALID_HANDLE, and works anyway. When drawing to a PDF995 printer or a physical HP printer, it returns 0, sets the ...

Send Text to a Port Using Javascript

I recently got a new printer (specifically a HP Photosmart C6380 if that helps) that allows me to send text to port 9100 to print. Telnetting into it and typing text to print works fine, but I'm wondering if I could make a webpage using HTML and Javascript that can send text directly to it. I'm currently using the code from the article...