printing

Print without Printer selection dialog

Hi, I want to print my crystal report directly, without printer selection popup. How can I do this ? myReportDocument.SetDataSource(saveDataSet); //Print crystalReportViewer1.ShowRefreshButton = false; crystalReportViewer1.ShowCloseButton = false; crystalReportViewer1.ShowGroupTreeButton = false; crystalReportViewer1.ReportSource = myR...

How to print a JTable header in two lines?

Program is to print a JTabel and used function is JTabel jt=new JTable(); MessageFormat headerFormat= new MessageFormat("My World Tomorrow"); MessageFormat footerFormat = new MessageFormat("Page {0}"); jt.Print(JTabel.Format,headerFormat,footerFormat); Query is: How to print the header in two lines that is My World Tomorrow T...

How do perform a generic print for key type and map

With reference to this question StackoVerflow 529831, this was one of the suggested approaches template<typename Map> typename Map::const_iterator greatest_less(Map const& m, typename Map::key_type const& k) { //How to print K and Map m typename Map::const_iterator it = m.lower_bound(k); if(it != m.begin()) { return ...

Writing a Windows Printer Driver

I want to write a application in C++ or C# that will behave as a printer driver when installed. It will be available in the drop down list in Print dialog but instead of printing it will call into my code. I think there may be some interfaces that Windows provide to write printer drivers. ...

Support for Printer programming

Hi, Does anyone know a community where one might find answers relating to printer driver programming? I know it's a bit general, but I'm stuck with a particular SDK and the manual is just really bad. For reference, I'm working with an Epson SDK, and I can't seem to find the a "developer's forum" on their website anywhere. Please don'...

Receipt Printing

I am trying to make a web app print receipts for my customer (he asked me for it) I've placed a table and everything however when I print it I just can't get it to print correctly into the fields of the receipts. Let me explain, the receipts are already made so I am merely making a place where the user inputs all the required fields and ...

Where can I get a printed copy of the Open Group Base Specifications?

I find myself using the Open Group's base specifications quite a bit when I work. Using them online is fine, but I'd like to have a printed version. I found the site here, but the site says a printed version is unavailable. The html version is freely available, but the PDF requires paying a 4 figure membership fee, which I'm not able to...

How do I print a single comment in drupal?

I want to print a individual comment in drupal based on it's comment ID. How can I do this? Google and other sources have yielded me nothing. Thank you. ...

Programmatically printing directory of word documents... last file always skipped.

I am having a problem when trying to programmatically print a directory of word documents. In this example, I am trying to print only the files with the "3_" prefix. The problem is that the file does not print unless there are two files with the 3_ prefix. I have been looking around forever to figure this problem out. Is there someth...

Determine the IP Address of a Printer in C#

Hi, I would like to determine the IP address of a printer, using C# (.NET 2.0). I have only the printer share name as set up on the Windows OS, in the format \\PC Name\Printer Name. The printer is a network printer, and has a different IP address to the PC. Does anyone have any pointers? Thanks in advance for your help. Regards, Andy....

Printing Reports and invoices with Ruby?

I just learn Ruby, and i wonder how to generate Reports and Invoices (with Logo, adressfield, footer, variable number of invoice-items (sometimes resulting in more than one page), carry over of the amount to pay from one page to the next, free-floating 2-column text (left-and-right-justified) below the resulting cash-informations). Curr...

Is it possible to change the width of a table with CSS while printing?

I need to change the width of the table while printing the page using <link rel="stylesheet" type="text/css" href="../css/reportPrint.css" media="print" /> Can I change the width of the table while printing from the CSS file? Any help would be appreciated. ...

Win32 printing - cannot set landscape mode

I've got an old app that I need to get to print in landscape mode. The documentation I've found says to get a DEVMODE structure, change a couple of fields, and put it back in. What I've got is: HANDLE printer_handle; LPHANDLE printer_handle_pointer(&printer_handle); OpenPrinter(printer_name.get(), printer_handle_pointer, N...

How to export datagridview to excel using vb.net?

good day, i have a datagridview in vb.net that is filled up from the database. I've researched and i found out that there is no built in support to print directly from datagridview. I don't want to use crystal report co'z im not familiar with it. I'm planning to export it to excel to enable me to generate report from the datagridview. ...

How to print a Qt dialog or window?

How do I get Qt to print a complete dialog or window? I could dump the window contents with an external program like xwd and print that, but I would prefer to do it all with Qt. ...

Printed Report is not recognizing margins

I have an application developed in vb using .net framework. We are using Crystal Reports XI runtime to run reports from this application. When I view the reports in Crystal, they are properly centered on the page, however, when we view the report on screen it all looks correct, however, when we send it to the printer, the report is hig...

Printing ServerReport without Preview

I have a SQLServer 2005 Reporting Services ServerReport deployed and frequently used by my Winforms app (Framework 2.0) via the ReportViewer control. What I need is to provide a one-click print button from one of the forms of the app that triggers only the print dialog, without bringing up the ReportViewer. I've been experimenting wit...

Testing the paper is finish in my printer

Hi people. Someone knows how to get a warning in my VB program when the paper in the printer was over. Thanks for the help. ...

Visual Studio: Printing all source files in a solution?

Is there a way to print all (*.cs) files in a solution at once, that is, without clicking on each of them and then hitting print? ...

Retrieving Device Context from .NET print API

I am working on a .NET application to control DataCard Desktop Card printers, and I have stumbled upon a problem. In order to execute Magnetic Stripe and Chip encoding, I have to call a function in a native printer API dll to enable the printers Interactive mode. I have managed to create the P/Invoke code to call this native function. B...