printing

Do you have to format the printout from print_r() in PHP to have it validate with W3C?

This will not validate because of the output from print_r, is it not supposed to be used "on a site" or do one have to format it in a certain way? <?php $stuff1 = $_POST["stuff1"];//catch variables $stuff2 = $_POST["stuff2"]; $stuff3 = $_POST["stuff3"]; $myStuff[0] = $stuff1;//put into array $myStuff[1] = $stuff2; ...

Printer Page Size Problem

I am trying to set a custom paper size by doing: Printer.Height = 2160 Printer.Width = 11900 But it doesn't seen to have any effect. After setting this up, i ask for that values and it returns the default ones. And this: Printer.PaperSize = 256 Returns an error... Any ideas?? ...

Get List of Printers from Windows Server

I'd like to query a Windows server that is publishing a set of printers programatically and find out what printers are available on the remote machine (name and description) without installing the printers locally the name of the printer driver respectively I'd like to be able to process the result in some scripting language like Aut...

Printing Large XPS file to printer..

Hi, I have an application which generates a large FixedDocumentSequence. Which has two option either to Print to a printer or save it as a XPS file format. Now, there is no issue with saving to a XPS File format. But, when you print the xps to Printer.. It takes really long time to bring the first page to printer. It wait's until the al...

How to cancel a .Net PrintDocument

If the user clicks the Cancel button while the Generating Preview window is displayed, I would like to a) Print something like * Terminated * at the end of the report, and b) notify the calling routine that the PrintDocument was cancelled. I have been able to work around (b) by adding a WasCancelled property to the report class... ...

How can I render a web page on the server (no GUI) for printing?

I'm trying to print pages pragmatically with a PHP script, to an office printer. Here's what I've got so far: I have a printer installed on the server, and I can send jobs to it with PHP via the command line's print command. I can also write plain text files with my PHP script, and then add them to the print cue. So printing PHP genera...

choosing which pages to print in an Access report

I need to print without any option, choose the last two pages of a report and print it. I am not strong at Access development so I am not sure how to do it. ...

Not correct page breaks if print from IE COM interface IWebBrowser

I have HTML document to print from embedded COM IWebBrowser object. And although in IE itself it printed with correct page breaks (by page-break-inside in CSS). In my application it make it wrong. I'm already dig it much. Can you suggest something? ...

How can I select a layout when using Windows Picture and Fax Viewer (shimgvw.dll) to print jpgs from the command line?

I am automating the printing of jpg files using a windows batch file and the command line interface for the Windows Picture and Fax Viewer. The command I'm using in my .bat is: rundll32.exe C:\Windows\System32\shimgvw.dll,ImageView_PrintTo /pt "%fullpath_to_jpg%" "%printer_name%" My photo printer does 4x6 prints. If the jpg file is ...

Print the contents of a DIV

Whats the best way to print the contents of a DIV? ...

How can I make the printer work in C in MS VC++ Express edition?

I am using VC++ 2008 express edition for C. When I try to run this: /* Demonstrates printer output. */ #include <stdio.h> main() { float f = 2.0134; fprintf(stdprn, "This message is printed.\n\n"); fprintf(stdprn, "And now some numbers:\n\n"); fprintf(stdprn, "The square of %f is %f.", f, f*f); /* Send a form feed */ fprintf...

Java and thermal receipt printer

Hi all, Does anyone know how to print receipt use Java? I have googled for a long time. It seems Java POS should be a good solution. I have a quick look at it and it looks need the printer's Java driver. My printer is a cheap one, support ESC, but only have Windows driver. I also tried: FileWriter out = new FileWriter("LPT1"); It d...

What software do you use for letter templating and printing?

In our LOB application there is a very important use case of printing letters, which are then printed and posted out from a mail house (thousands per day). The current situation is that the letter templates are created in Word 97 and fields are mail merged from values in database using a VB.Net application that basically uses word automa...

Print document and create PDF in C#

I've got some information I would like to output to a printer, but also as a PDF. I would be great if the PDF and the printing output would look the same. As what I understand, PDF reading and creating is not supported in C#. I can create PDF's easily with external librarys like iTextSharp, but I don't know how to print them without usi...

bluetooth printer library for iphone

Is there any library available for IPhone (both paid/free/open source) which gives printing support over bluetooth for most common printers. ...

How does one print iframes?

I built a printable version of my data using multiple iframes to display line item details. However, if any of my iframe content is larger than a page they get cut off when printing (they display fine on the screen). All of my iframes point back to the same domain and I'm using the browser's File->Print function to do my printing. I don'...

How to write a virtual printer driver for Mac OSX

I need to write a "virtual printer driver" for OSX, so that when the user presses Command+P to open the Print dialog, he sees my virtual printer...which will be used to generate files of various types, instead of physically printing to paper. I'm new to the subject, I looked around a bit but found nothing. Do you have any link or refere...

VBS - Get Default Printer

Using the Wscript.Network object shown below, is there an easy way to retrieve the default printer on a machine? I know how to set the default printer, but I'm looking to get the current default printer name. I have a mixture of Windows 2000, XP, and 7 clients and don't want to use WMI for that reason. Set objNetwork = CreateObject("W...

Create charts ready for print

I'm looking for a solution for creating charts dynamically, that will be ready to be used in a newspaper or similar printed media. I've got data that is updated regurarly, stored on a server. What I need is a script that takes the data and creates a (good looking) chart, and exports the chart as PDF or EPS (or a high resolution pixel i...

C printf using %d and %f

I was working on this program and I noticed that using %f for a double and %d for a float gives me something completely different. Anybody knows why this happens? int main () { float a = 1F; double b = 1; printf("float =%d\ndouble= %f", a, b); } This is the output float = -1610612736 double = 1903598371927661359216126713647498937...