printing

How do I tell when a CUPS print jobs has been completed plus info about that job?

I need to know each time a Mac print job is created/completed, plus some information about that job (what was printed, pages, copies, etc). The best method I've come up with thus far is to use kqueue() on /var/spool/cups/ and then parse the c##### files as they're created, but I'm wondering if there's a better way. ...

How can I process an image in .NET for a full-page print with a quality like Windows Photo Gallery does it?

I'm writing a printing routing in C#, using the .NET PrintDocument class, handling the OnPrintPage event. I've managed to maximize the margins and print the Image in landscape mode, but it simply does not look as good as when I print the same image file from Windows Photo Gallery (formerly Windows Picture and Fax Viewer), the default im...

Is it faster to give Perl's print a list or a concatenated string?

option A: print $fh $hr->{'something'}, "|", $hr->{'somethingelse'}, "\n"; option B: print $fh $hr->{'something'} . "|" . $hr->{'somethingelse'} . "\n"; ...

How to print list of icons from Mac Finder?

I want to print what I see in the finder (using Mac OSX snow leopard). It's a big list of roughly 1,000 icons and I want to print all pages to get a good overview of the contents. The Finder's "View">"As icons" fit perfectly for what I want to print. Question is how do I print this. I cannot just take a screenshot, because the content i...

Help While Loop in C

I'm new to C programming, I come from a Java background. I was wondering why in the following code, in the while loop I have to type my input ten times and then all ten inputs are displayed. I'm trying to type something once and have it displayed right after. Then continue typing my other inputs. #include <stdio.h> #include <stdlib.h> ...

Do I need to scale a picture myself before printing?

A simple question - If I want to print a picture so it best fits the page in C#, do I have to scale it to the dimensions of the page myself ? I've noticed the many good answers about how-to scale, I just want to know If I need to scale myself, as the scaling isn't a part of an image processing, it's only for the sake of the printing. ...

Is there any way to intercept print jobs on a local Windows XP machine?

Preferably using a scripting language like Perl or Python, but if I have to go the compiled route then so be it. Essentially what I want to do is make an addition to my company's mail merge system. Right now, the software we use has a rather limited selection of mail merge fields that it exports, but if we could somehow incorporate res...

Print using a template in flex

I've set up an application to print the current state of the control I'm using (in this case an ArcGIS server map), but I'd like to set up a print function that uses it's own template to print rather than grabbing the state of the application. I've attempted to do this by setting up a flex component that lays out the items I want to pr...

How to print an array to a .txt file in Matlab?

I am just beginning to learn Matlab, so this question might be very basic: I have a variable a=[2.3 3.422 -6.121 9 4.55] I want the values to be output to a .txt file like this: 2.3 3.422 -6.121 9 4.55 How can I do this? fid = fopen('c:\\coeffs.txt','w'); //this opens the file //now how to print 'a' to the file?? ...

C# 2008 Printing to Preexisting Page Template

I'm doing some work for a Laboratory, helping with an application that prints all the tests results. The results are printed on a "pre-printed" form, this is a custom form they had made, I believe they already have several boxes of this form. I need to figure out how to print on top of it and make everything align correctly. Any on...

Print all combinations from 0000 to 9999 in C#

Hi all, just wondering if anyone had an algorithm lying around that printed all possible combos from 0000 to 9999 (trying to crack code into old phone and new to learning C#)...Million thanks. Bela ...

Windows print spooler limitations?

Is there a limit on how many print jobs can be queued up in the Windows Print Spooler? ...

How to "print" to a paper in PHP?

What I mean is, lets say I have a content: "Stackoverflow is the best, bla bla bla..." I want to print the content in a paper, not computer monitor, how to do that? I saw a lot of CMS using php, have a print icon, and able to print it? (Well, I am not creating a CMS, just wondering how the printing works in php) ...

Dynamics AX 2009 How to change customer invoice layout/printing?

I'd like to change the default customer invoice print to something else. Add an image to the head, change the layout, change the columns, well everything in fact. Can someone explain how to start this, or maybe point me to some tutorial or reference about this? So far all I found was ways to create new reports, but I'd like to change t...

print a txt to the default printer with c#

Hi, Is there a way to send a .txt to a printer using c#? something like string doc = "c:\temp.txt"; sendToPrinter(doc); ...

How do I correctly space multiple string fragments within a single bounding rectangle when priting with c#?

I am writing a function that applies special formatting to predetermined keywords when printing a string. For example, in the string - "Why won't this work?" I might need to print the word "Why" underlined and in blue. I've had to implement this in pieces, printing each segment of a string with a separate call to print. This approach w...

How to print thousands of personalized documents over the web

I need to generate thousands of personalized letters from more than 800 workstations in diverse locations. While we had only a dozen of customers per location, we used Crystal Reports over the web and its PDF/Word export function to produce multi-page document for print. With thousand of customers this just doen't work for the followin...

How to recover the INF file from an installed XP printer driver?

I am trying to build a utility to export an installed printer driver from a Windows machine. All is well and good on Vista and higher, because the InfPath entry in the driver's registry key points at the INF file. However, on previous versions of Windows, this doesn't exist. Sometimes I can find the INF file for a printer by scanning C:...

Firefox CSS Against me? ?

Hello Everyone. I am a Programmer and not a Designer. My boss asked me to modify the print.css I modified the print.css 10 Hours, nothing nothing and nothing happened. If with IE everything looks good, in FF it looks horrible. If with FF everything looks good, in IE it looks horrible. What did i wrong? Pls have a look at this website ...

Print HTML documents using .NET program

We have a requirement to print HTML documents using a .NET program. We are using the following code to print. The print needs to happen in the background and should not ask for a print dialog. The problem we are facing is in case of multiple frames, multiple pages are being printed. Also, we only need first page to be printed. With th...