printing

Invoices for Printing in MS-Access

The application that I'm currently working on has a funky set up for the invoices that they print. The form is the invoice that is printed out. I took a look at the Northwind DB and what it does is and it actually generates a report based on the record's information. What are the limitations of using Forms vs. Reports for printing out ...

How can I find if there are printers installed (using Delphi)

My program is written in Delphi (object oriented pascal). When I try to print anything I get the message "There is no default printer currently selected." on computers with no printers installed. To prevent this I want to check if there are any printers installed. Is there any way to check if any printers are installed? ...

Can I send a ESC d command to a POS printer from perl?

I have a Star TSP100 printer and I'm having few problems with it really. My problem is that I'm not as familiar with programming as I should be - but I'm learning! The programmers reference for the Star printer says that if I send a ESC d to the printer - that will activate the built-in cutter - which I would like to do very much. My...

When printing style information is lost?

I've set the media to all but when printing a page and clicking "preview" much of the style information is missing. Any idea why? ...

How to print directly, without Print Dialog in WPF?

I just want to know how I can print a flow document without showing Print Dialog in WPF. Thanks for help... ...

C++ Printing: Printer jams, what am I doing wrong?

I have a problem with printing in C++. As far as I know, this code used to work on my previous printer, but ever since I got another one (an HP C7280) it started giving problems. Whenever I try to print anything, even an empty page, the page JAMS the printer. I have to manualy remove the page from the printer. I have no clue why this is ...

Is it Possible to change the Default Margins of Browser through JavaScript???

I want to change the default margins of Browser through JavaScript because I want to print the displayed document on page but the margins are different on different browser??? plz help me to change default margins of browser. if you have any solution tell me. ...

Enable "Current Page" in PrintDialog

Im using a System.Windows.Controls.PrintDialog to let the user print one or more pages from my application. This is what I currently got: PrintDialog printDialog = new PrintDialog(); printDialog.PageRangeSelection = PageRangeSelection.AllPages; printDialog.UserPageRangeEnabled = true; if (printDialog.Sh...

WPF: Best method for printing paginated datagrids

Boy did I get an education looking into this. I guess I've been spoiled by Powerbuilder, which has fantastic functionality for this out of the box. Does anyone seriously write custom documentpaginator objects to handle reporting needs for their LOB apps? I want to be able to print "for free" and not have to code like crazy just to tak...

Unable to trim the string in PrintDocument

I have some string to print on PrintDocument using its graphic object using following code, and I'm expecting if rectangle area in small to fit whole string it show trim it with ellipses but the trimming is not applied to the drawn string, is there any thing wrong in the code? (If draw string on windows form it works) PrintDocum...

print pdf/doc/rtf through java web application

my requirement is to directly print either pdf or ms doc file through java web application. client don't even want to know where the file is saved. On click of print button,a file is created and it is saved somewhere. After the creation,i want the file to automaticaaly go to printer. i have tried : javax.print for pdf. Here printer i...

Print table data mysql php

Hi people, i'm having a problem trying to print some data of a table. I'm new at this php mysql stuff but i think my code is right. Here it is: <html> <body> <h1>Lista de usuários</h1> <?php $host="localhost"; // Host name $username="root"; // Mysql username $password=""; // Mysql password $db_name="sabs"; // Database name $tbl_name="do...

C++: Weird Segmentation fault.

I am trying to print something using C++. However, I am running into a strange bug that has left me clueless, I use the following code: PRINTDLG pd; ZeroMemory(&pd, sizeof(pd)); pd.lStructSize = sizeof(pd); pd.Flags = PD_RETURNDEFAULT; PrintDlg(&pd); // Set landscape DEVMODE* pDevMode = (DEVMODE*)GlobalLock(pd.hDevMode); pDevMode->dmOr...

Word 2007 macros: is there an OnPrint event I can attach a macro to?

I'm looking to do a formatting check on word files before they get sent to the printer and it needs to be completely transparent to the user (no extra controls, just using the standard print options available through the UI). Is there an OnPrint or BeforePrint event, or something that can be used in that respect which I could attach a m...

Printing complex widgets in Qt

I have a complex widget with tons of different subwidgets, e.g. subclasses of QLabel. I want to print this widget, but obviously I do not want to print the background, I want to print with differing text colors or have the style of frames slightly modified. As I do not really want to iterate through all subwidgets with a special "print"...

How to print all values of Vector[]

I have a Vector of Object[] type that stores my data. How to print all it's objects ? The code: private static Vector<Object[]> vector = new Vector<Object[]>(); int event=0; for(int i=0; i<10; i++){ vector.add( this.addToObject(System.currentTimeMillis(), event , "String") ); event++; } private Object[] addToObject(long ...

What is difference between output functions in php ?

What is the difference between these code snippets? 1) $f = 12.044545; printf("%f",$f); vprintf("%f",$f); 2) echo("echo"); print("print"); Thanks, ...

Linkable reporting library for Qt, with editor or easy markup

Is there a reporting library which can be linked with a Qt application to generate and print invoices (from within my own application, no seperate tool). The invoices are needed to print instantly, so I have the following requirements: pipe data to be printed into the reporting library choose from a predefined reporting template (creat...

How to send a stream (string) to print via a print server (Asp.Net)?

I developed a web application in asp.net and I would like to send a stream string via a print server. I know the ip of the printer connected to the network and the IP of the print server, but I do not want to send the stream directly to the printer and prefers to spend by the print server. I really look on the net, but I do not find a ...

Ideas on limiting content to single printed page?

I have 5-6 text areas that users fill out in a template (a couple of columns, basically a newsletter format). I'm needing to limit their content to one printed page, but I'm having a hard time coming up with practical solutions. The printed format (margin, font size, etc.) will be the same for all users, as it's printed from a central so...