printing

How are echo and print different in PHP?

Is there any major and fundamental difference between these two functions in PHP? ...

Auto start print in html/javascript

Is there anyway to automatically run: javascript:window.print() when the page finishes loading? ...

Dot Matrix printing in C# ?

I'm trying to print to Dot Matrix printers (various models) out of C#, currently I'm using Win32 API (you can find alot of examples online) calls to send escape codes directly to the printer out of my C# application. This works great, but... My problem is because I'm generating the escape codes and not relying on the windows print syste...

How to print out code?

What's the best way to print out code (e.g. for a code review)? Eclipse's print option only does portrait (afaict), wich is unreadable for longer lines of code. Opening and printing all files in an editor like gedit is a pain. Is there some batch code print program available? Or is there some magic command line chain that does it for m...

Printing without Page Setup - reacting to paper size and orientation changes?

The AppKit release notes for Leopard say: In many applications it is not appropriate to present page setup panels to the user, or even include a Page Setup... item in the File menu, but there has been no other easy way to let the user specify page setup parameters to be used when printing. (New UI advice: if your applic...

How do I keep Python print from adding spaces ?

In python, if I say print 'h' I get the letter h and a newline. If I say print 'h', I get the letter h and no newline. If I say print 'h', print 'm', I get the letter h, a space, and the letter m. How can I prevent Python from printing the space? The print statements are different iterations of the same loop so I can't just...

Writing a Virtual Printer in .NET

I'm looking to create a virtual printer that passes data to my .NET application. I want to then create an installer that installs both the printer and the .NET application. It would we really nice to be able to write it all in C#, but I have a feeling that this will require a printer driver to be written is unmanaged code. Does anyone ...

How to simulate a slow printer in Windows XP?

To test printing in a Visual Basic Project I need to simulate a SLOW printer, how can I do that? ...

Best way to print in ASP.NET

All, I have a html string held in memory after transforming to my desired template with XSLT. What is the best mechanism to the send this to the client printer? In previous projects I have shamelessly cheated and created a print preview scree which was essentially an ASPX page stipped to a white background that I then printed using W...

Print a tiff file from a .Net Windows Service

Hello to all, We have built an application that receives several files in different formats, pdf, tiff, jpgeg, doc, etc. After received, they are converted to tiff files using a third party printing driver which is installed locally on the server and set up as the default printer. In order to do that we open a System.Diagnostics.Process...

Load image from file and print it using WPF... how?

I'm looking for an example of how to load an image from file and print it on a page using WPF. I'm having a hard time finding good information about WPF printing. ...

How do I send control characters to a Windows printer in Crystal Reports?

We are trying to build a Crystal Report that sends control characters directly to the printer, without going through the (buggy) Windows driver for that printer. Does anyone know a way to do this from within a Crystal Report? The specific control character we are trying to send is CHR(2). However when we put that in a Crystal Report, a...

Best way to represent a wide grid for printing?

We have many WIDE html grids which scroll horizontally within a DIV in our web application. I would like to find the best strategy for printing these grids on a portrait A4 page. What I would like to know is what is the best way to present/display grids/data like this. This question is not HTML specific, I am looking for design stra...

Print PDF from ASP.Net without preview

Hi, I've generated a pdf using iTextSharp and I can preview it very well in ASP.Net but I need to send it directly to printer without a preview. I want the user to click the print button and automatically the document prints. I know that a page can be sent directly to printer using the javascript window.print() but I don't know how to m...

SQL Server Print Blank Line Without Space

In SQL Server 2005, I want to print out a blank line with the PRINT statement, however, when I run PRINT '' it actually prints a line with a single space. Does anyone know if it's possible to just print a blank line without the space? If I print a new line character, it doesn't print a space, but I end up with two new lines. ...

Printing only a textarea

I would like to print only the contents of a textarea element from a website page. In particular, I would like to ensure that nothing gets clipped by the boundary of the textarea as the contents will be quite large. What is the best strategy for tackling this? ...

Print existing PDF (or other files) in C#

From an application I'm building I need to print existing PDFs (created by another app). How can I do this in C# and provide a mechanism so the user can select a different printer or other properties. I've looked at the PrintDialog but not sure what file it is attempting to print, if any, b/c the output is always a blank page. Maybe ...

Direct3D Output on a Printer/Plotter

What is the best way to send Direct3D output to a printer or a plotter? ...

Image DPI Explained

Attempting to write a definition of DPI has lead me to: DPI (dots), PPI (points), LPI (lines) all refer to the same concept hereafter referred to as DPI. DPI is a device dependent measurement. It says, "This is the resolution of this device." Vector based files are not tied to any one DPI (they expand and contract to conform to a cer...

Style html text input size to match its contents

I've asked a few other questions here about this system, so I'll try to avoid repeating a lot of detail. The short version is that I have many html pages, each with a form that accepts input, but never saves the input anywhere- they are only ever printed out for mailing. A previously developer who had never heard of @media print did th...