printing

Windows printer driver information utility?

There used to be some utility called WinPrInfo (GUI based) or something alike, that would display information about all installed printers using GetDeviceCaps/DeviceCapabilities. But I can't seem to find it on the web, anyone can help? ...

ruby logging convenience method

I would like a ruby method "show" which does this: anyobject.show the output of the call would be: anyvar => the pp string of the object Something close , but not quite is : p "any_var => #{any_var.pretty_inspect}" Since you have to type "anyvar" out to accomplish that. ...

[AS3] print a jpg

Hey guys, I've been trying to print a dynamically loaded jpg and for some reason it's never printing to scale, not sure what I'm doing wrong so here's what I've done so far var request:URLRequest = new URLRequest(getAbsPath("pages/" + pagePrint + "_big.jpg")); var loader:Loader = new Loader(); loader.load(request); loader.contentLoader...

How to force a link/image on a webpage to open in a separate program?

I'm using a CMS to create an ID-badge system. It takes the user's picture and creates a whole fancy image (PNG, if it makes any difference) around it, sized to print out on this nifty badge printer I have sitting next to me. Right now I save the image to my computer, then open it in an image program and print it. But that seems a bit...

Print simple numbers on label printer (Brother, Dymo, etc) from C# (.NET)

As part of a project I'm working on, I need to automate a label printer. It will be one of those inexpensive USB printers from Brother or Dymo (open to other suggestions). All it needs to do is print two numbers on one label. The challenge is that I'm hoping to keep it ultra-simple in C#. It seems like the solution from Brother is antiq...

How might I remove a black background from PDF text when printing?

I have a PDF with a black background and white/yellow text. Is there a way to remove the black background when printing and invert the color of the text? Thanks ...

PCL and 1200 DPI

Hi.. Is it possible to send the PCL Set resolution command with 1200 dpi (and higher) as parameter? I've been looking at the spec sheets for HP PCL and it tells me that the only valid values for it are 75, 100, 150, 200, 300, 600. I am trying to print to a non-HP machine claiming to support HP PCL5 and it prints fine for 300 and 600 d...

Counting colour and grayscale print jobs

Hi I'm writing a small application that's supposed to count the number of colour and grayscale jobs going to local printers. It's meant to cross reference with what the printer records. If there is any non-grayscale elements on the job, the printer records a colour job. At the moment I'm using the EnumJobs call but I can't get any col...

How to print a C# Windows form as a word doc would be printed?

How to print a Windows form as a word doc would be printed? I do have a windows form, the content of which, including labels and textbox values, i want to print. I did have the thought of using reports, but it would be very hard to create it, so i'm asking for a simple way of doing it (the printing). So this question popped out. Is it p...

Printing from C#

I need to print to different positions on an A4 paper from C#. What are my options for this? ...

Retrieving Client's Printer Collection in asp.net

Hello, I am working on web application .net 3.5,asp.net,C#. In that i need to provide list of available printer at client side. I have knowledge of how to get server side printers using [1] System.Drawing.Printing.PrinterSettings.InstalledPrinters [2] System.Management.ManagementObjectSearcher [using query "SELECT * FROM Win32_Prin...

C# Printing form - image blurry

Hi I'd like to print my form but printed image is very blurry. Actually it is so blurred that I can't read it. First, I capture my form: [System.Runtime.InteropServices.DllImport("gdi32.dll")] private static extern long BitBlt(IntPtr hdcDest, int nXDest, int nYDest, int nWidth, int nHeight, IntPtr hdcSrc, int nXSrc, int nYSrc, ...

Server generated printing printing to printer closest to user

We have a SAAS application where reporting and other print jobs are generated on our application servers and then sent to CUPS print queues. The queue prints to printers at the client sites via IP printing; so far everything works fine. However, we have a new requirement with a new customer. They want a print job to print to the pri...

How to create a link that triggers printing of a file?

I have some small images and each has a "print larger image" link. For example: <img src="thumb.jpg"> <a href="#">Print Larger Image</a> When the user clicks the "print larger image" link, my goal is to trigger the printing of "big.jpg". How can this be done? EDIT: ANTHONY HAD THE RIGHT SOLUTION FOR ME. I MODIFIED HIS CODE A BIT TO...

printing a document programmatically

If I have adobe reader installed, is it possible to programmatically print the document to a specific printer without having adobe reader or the printer dialog display (no user intervention)? Any code snippets or sugestions are helpful. I can use any version of the .net framework to accomplish this ...

Can an email be printed as soon as it enters the Inbox?

Hi, We are working on an online food ordering application. When the user orders something from any restaurant, an email is sent to the restaurant's email address mentioning the order details. However, our client wants that an order print out should be generated automatically as soon as a new order is received. Is it feasible using ROR?...

Using default printer source tray

In one of my apps I offer the user the ability to change the source tray used when printing. This is straight-forward enough - you modify the dmDefaultSource member of the DEVMODE structure, call ResetDC and all is well. However, I now want to use the default source tray as set on the printer's control panel (ignoring whatever the defa...

Generic printing using a USB port

I am developing on a device that has no printer support natively. I need to print to any printer using a USB port. Is this feasible? Is there any generic standard for all printers to print via USB? The device runs on Linux/PowerPC. ...

GWT printing to PDF

Hi guys, I wanna to a pop over content to PDF. I am using GWT. I think client side its impossible. But any budy here know how browser can print into PDF file? And is there any way to print a HTML content into PDF on server side? I have a HTML content with CSS on adding this content to PDF the view should remain same as it appear in HTML...

How to print a list more nicely?

This is similar to http://stackoverflow.com/questions/1523660/how-to-print-a-list-in-python-nicely, but I would like to print the list even more nicely -- without the brackets and apostrophes and commas, and even better in columns. foolist = ['exiv2-devel', 'mingw-libs', 'tcltk-demos', 'fcgi', 'netcdf', 'pdcurses-devel', 'msvcr...