printing

bactch print for "Outlook calendar printing assistant"

I'm using "Outlook calendar printing assistant" to organize my daily work list then print into a paper every morning, just wondering if the print job can be done automatically through some kind of batch command line? ...

Print iframe content in Opera and Chrome

I'm trying to print iframe content. contentWindow.focus(); contentWindow.print(); This code works in IE, Firefox and Safari. But don't work in Chrome and Opera. These browsers print entire page. I tried to use this topic http://stackoverflow.com/questions/472951/how-do-i-print-an-iframe-from-javascript-in-safari-chrome. But it didn't...

print bitmap on a specific resolution

Hi, I have several large image files (32bpp, 50 megapixel) that I draw on top of each other, because they are partly transparent. I want to print the images on the PrintPreviewDialog. If I draw directly on the PrintPage the resolution is super but the printdocument is huge (200Mb) If I draw on a bitmap that has the size of the paperfo...

Preserving selected printer settings

I have an application that runs through a series of bookings and prints each in turn in the form of an itinerary to send to clients. Each run could be 30 or so bookings so a need to automate this is required and we have delivered it. All works well with our report software (Report Builder for DELPHI) except when the user wishes to use D...

How can I make a pdf non-printable programmatically?

How can I make a PDF non-printable programmatically using .net? ...

Print to specific printer (IPP URI) in Java

Is there any way in Java to print to a specific IPP printer? All of the sample code and tutorials I've found focus on how to print a particular type of document, using something like the following: DocFlavor flavor = DocFlavor.INPUT_STREAM.POSTSCRIPT; PrintRequestAttributeSet aset = new HashPrintRequestAttributeSet(); aset.add(MediaSize...

Printing code with syntax highlighting?

I have occasion to need to print code (Horrors!!! ;) ), and i was wondering what editor or tool would i use to print that code out with proper formatting and syntax highlighting? If it's important, it will be c# code but ideally the tool will work for as many languages as possible. Can Notepad++ or something handle this? ...

Using System.Drawing.Printing.PrintDocument in WPF

Hello, I have a WPF application and I use external library for generating documents. This library returns document as System.Drawing.Printing.PrintDocument. How can I print this document in WPF? I can use Print() method directly, but I need to allow user to select printer and settings. If I use WPF PrintDocument dialog, I can't set my d...

Printing a WPF BitmapImage

What's the best way to print a BitmapImage? I come from a background in System.Drawing so I was thinking about converting it to a Bitmap and then printing it, but I'm thinking there's probably a better way. Thanks! ...

Can I force a page jump in HTML printing?

I'm making a HTML report that is going to be printable, and it has "sections" that should start in a new page. Is there any way to put something in the HTML/CSS that will signal to the browser that it needs to jump to a new page at that point? I don't need this to work in every browser out there, I think I can tell people to use a spec...

C# PrintDialog.PrinterSettings.CanDuplex Reports Wrongly

I'm trying to setup some code to print to different trays on a photo copier depending on what the document is (different sizes, paper colours...). It is one particular type of copier so I am not too worried about the code working in other scenarios. I still want to show the print dialog, just with the settings having better defaults for ...

Best way to print CSV-like list data

I would like to print simple CSV-like list data from a .NET application. sometimes rows needs to be grouped together and a sum must be calculated and printed. which is the best way to do it? printing directly through printing/drawing namespace? con: IMHO doing the page/row/cell calculation and drawing borders will be hard to get right ...

Printing to a postscript printer from PDF4NET

I have a postscript RIP I'm trying to send data to from PDF4NET and I'm having spotted results. If I print the files from their saved PDF format they print fine, however if I print them from within the PDF4NET programmed tool, all the pages print, but the data is not all there. I understand the PDF4NET uses windows API for printing, and ...

Silverlight printing

What are my options for printing in Silverlight 3? Assume I have this awesome Silverlight application/control that creates a graphical display of some data. Now the user wants to print it. I have considered a few options but I have yet to test any of these. Before I do that I would like to get some feedback on how it can be done. Use ...

"Are you sure you want to print X pages?" dialog before actually printing... (for any app)

In Internet Cafes where people are allowed to print, sometimes they print more pages than they intended to. I'm looking for a way to display an "Are you sure you want to print X pages?" dialog after they pressed print (in any application), but before the job is sent to the queue. I'm looking for pointers on how to implement such a hook...

WPF Printing Flow Document

Greetings, I have a problem with printing in WPF. I am creating a flow document and add some controls to that flow document. Print Preview works ok and i have no problem with printing from a print preview window. The problem exists when I print directly to the printer without a print preview. But what is more surprisingly - when I us...

How to get high resolution images for Printers in .net?

If you go to "Control Panel\Hardware and Sound\Devices and Printers" in Windows 7 (and i assume vista) you will see some nice pretty pictures of printers. See image below Is it possible to get access to these images through .net? For example to display them on a windows form? ...

How to optimize the space in a A4 sheet?

Hi. I need to put many pictures into a sheet (A4) but I need an algorithm to optimize the space used in order to put the maximum numbers of possible images into the sheet. ...

Print-specific javascript

Is there a way to run javascript at print time? I know of the IE onprintbefore event, but we use mostly Firefox. What I'm trying to do is get element positions as they would be in the page rendered for printing so I can insert appropriate page breaks, basically to accomplish what the CSS "page-break-inside: avoid" attribute would do if ...

Overriding the newline generation behaviour of Python's print statement

I have a bunch of legacy code for encoding raw emails that contains a lot of print statements such as print >>f, "Content-Type: text/plain" This is all well and good for emails, but we're now leveraging the same code for outputting HTTP request. The problem is that the Python print statement outputs '\n' whilst HTTP requires '\r\n'. ...