printing

Java XHTMLRenderer print margin

I'm trying to use xhtmlprinter (flying saucer) to print the html part of a email. It almost works but on the page the imageable area of the paper is not used so the contents are clipped. Im using this code, which is modeled after the XHTMLPrintable in the simple package, to print the page. Graphics2D g2 = (Graphics2D) g; if (g2r == nu...

Printing multipage Tiff with C#

Hi, I am trying to print a multidimensional tiff. This tiff is having 3 Pages using variable imagetoprint. So I wrote following code, that unfortunately only prints the first dimension. All others are printed on empty paper. If I save the image from memory to file, irfanview shows all pages correctly... Who can give me a hint ? publi...

Remote dekstop printer sharing

I have two computers both running Windows 7 Professional x64. One computer has a USB printer connected (Dell V715W) which is working properly. When I create a RDP connection from the PC with the printer to the other PC, the printer is not shared. In the RDP settings I selected to share the printer in Local Resources, but no printer is ...

Color printing from Visual Studio 2010

I'm trying to print C# code from Visual Studio 2010 to a Konica BizHub Color Printer. Only the line numbers are printing in color. Does anyone know if there is some Visual Studio setting or plug-in to allow the text of the code to be printed in color? ...

Print footer at bottom of page in safari

I am trying to position a div (footer) element at the bottom of a printed page. In firefox this is working fine and the div will sit along the bottom of the printed page. However, in Safari the footer moves up the printed page if the browser window is not very tall. eg. if the browser window is 200px tall then the footer sits on the pri...

Passing data from a virtual printer to python

Hey all, I am trying to make a thing where in other applications you can print to a certain printer and python will get the data. How would I go about making this? It would have to work in all applications, so it would appear as a normal printer, and work on Linux and Windows, even if I have to rewrite it for both. So to recap: One op...

Prevent website url in print from javascript

Hello (Prevent website url in print from javascript?) I am sure some simple solution exists. I have a webapp, and I use a specific css for printing this form, which is working great. However on each paper it always prints the "URL" for the webapp, which I do not want. I am not sure but I suppose it's the browser that automatically inclu...

Printing from mono on OS X

I am pretty new to the platform, but I would like to know if anybody tried printing from a Mac using the Mono framework? Seems like the internal namespaces that are usually used to print on other platforms are not fully implemented (System.Drawing, System.Drawing.Printing) so does anybody know of a better way to do printing? Or is MonoM...

Can Flash's print action be triggered from JavaScript?

Is it possible to use JavaScript to trigger a Flash object's context-menu 'Print' action? Background: I have a page whose main content consists of a Flash object. I need to print this page via JavaScript, which I'm doing with window.print. Unfortunately, it seems that Firefox has a bug (for the past eight years) whereby Flash content ...

Java A3 printing on Macs coming out at A4 scale

I have an odd problem that seems to be specific to Mac computers. I have a prog that prints the content of an AWT drawing surface to an A3 sheet of paper. On Linux and windows machines the output is OK. Printing from a Mac I get the same dialog with the same preset parameters, the printer prints on an A3 sheet of paper as expected, but f...

convert printer port bytes inpout32

hi guys, I'm running out of ideas. I'm using C by the way via inpout32.dll. I have these "bytes"(e.g. 0000,00CC) being read from the printer data ports D0-7 or D1-8. I need to filter out human readable characters when a print job is being done. This is still very primitive, but I've got a listener function catching these data using ...

java.awt.print.PrinterException: Invalid name of PrintService.

I would ask it in the form of a question, but I have no idea why I'm getting this exception. I can't find any real documentation online either. To give you context although I don't think it's really relevant, I'm using it within the JFreeReport classic engine reporting framework. The stacktrace is: java.awt.print.PrinterException: In...

WMI Win32_Printer not working on XP Embedded

Hi everybody, I have some code which works on a standard XP system, but fails on XP Embedded test machine. I get System.Management.ManagementException : Provider Load Failure Here is my code: string query = "Select * From Win32_Printer"; ManagementObjectSearcher searcher = new ManagementObjectSearcher(query); ManagementObj...

Disabling "print" button in .net print preview dialog

I'm working on a C# / .net app. I want the user to be able to print preview, but I don't want the user to be able to print from the print straight from the preview dialog. The print preview dialog has a little printer button on it that sends the previewed pages straight to the printer. Question is, is there a way to get rid of / disab...

Delphi - How I tell the system what printer to use ?

To print the contents of a TRichEdit I use RichEdit.Print('My Document Name'); Some times I need to print it on "printer1" other times I need to print it on "printer2" Question: How I tell the system what printer to use ? ...

Printing to a bluetooth printer using iPhone

Hey folks. I wasn't able to find a clean answer on this, is there or is there not a way to connect my iPhone to a bluetooth printer to execute some printing tasks? I'm developing the app myself, so what framework could possibly do this? i read that Apple's External Accessory Framework handles bluetooth communication, but is it possible ...

Open print dialog in Silverlight after WCF callback returns.

I have a Silverlight app that gets a unique sequence # back from a WCF call to a db. From there I wanted to pass that into a printing function that opens the print dialog. But the problem is that I get a security exception if I call the open print dialog from the WCF call back (the dialog can only be opened from user click event). I t...

Windows Printer Spooler API get print data

Hi guys, Is it possible, using the Windows Printer Spooler API, to extract RAW/Plain Text or any useful data from a Print Job? I'll be building a separate App on a windows machine that will be listening for a Print Job and extract 'usable' data from it(plain text, etc.). Say I print a 'Hello Word' text from notepad, a separate applica...

Capture print dialog's cancel in silverlight printing

Does anyone know if you can find out if the print dialog's cancel was clicked? I've seen post and doc that say "EndPrint – Event fired when the printing is either completed or canceled. " But I don't think that is the print dialog's canceled... I think the is if the print job is canceled. thanks ...

C# : Print with DocumentPaginator and different PageOrientation

In my application I have some pages to print and I do it using the DocumentPaginator. Works fine so far. Most of the pages are in landscape orientation while a few are in Portrait orientation. But its looks to me I can only set one orientation for the PrintTicket. PrintDialog dia = new PrintDialog(); dia.PrintTicket.PageOrientation = Pa...