printing

Dos based printing using C#.net

i m using Dotmatrix printer EPSON for printing the reports, and i need the of how to print the reports without using crystalReport and print dialog, i.e. i want the code for DOS based printing in C#.net......... ...

Can WPF print PDF and Office files directly?

How can I allow the user of a WPF application to print PDF, Word, Excel and Powerpoint files without opening them, i.e. show a ComboBox of all files available, user clicks on one, Print dialog opens, user clicks OK and it prints to his desired printer? ...

Hiding Page Breaks in Excel

Following on from my previous questions: I have implemented a series of checkboxes with which users can hide/unhide ranges of data. This is great - it works. The problem is when the users go to print - the hidden data is hidden but the pages are still there but blank. If the page breaks are left to their own devices then everything is...

.NET: How to print files w/o opening them

Hello, We have an application that basically archives files and we give the user the possibility to print these files. They can be .txt, .doc, .pdf, .jpg nothing fancy. Is there a .NET way to send these files to the printer without handling them further, ie opening them? I already tried creating a process with the StartInfo.Verb = "pri...

How to create a virtual printer in Windows?

I want to create a virtual printer driver for Windows. Where should I start? The WDK has some printing drivers examples, but nothing I can use. MSDN doesn't seem to be very helpful. There are a lot of virtual printers for Windows out there (mostly they generate PDFs), how do they do it? Any links to the documentation I seem to miss are...

how to use the printer from C# ?

How can I launch the print of a document from C# .NET application ? the word document already exists in the hard drive. I just wish to start printing that word document upon the button click event. ...

Can I specify a separate "screen" and "print" view for a report in MS Reporting Services?

I guess this is not quite a "programming" question, but it is bothering me none the less. I am the author of a fairly complicated report with a lot of drill-downs and dynamically displayed elements. The business users I'm writing the report for like the drill-downs on the screen, but when they print, they want to see the report complet...

RemotePrintServer

Is there a way to print to a RemotePrintServer in .NET Windows Service? I'm reviewing a piece of code where a LocalPrintServer is used, but I need to be able to send the print jobs to a remote print server. Any ideas? ...

What's the easiest way to add custom page sizes to a .ppd?

I would like to add custom page sizes to my printer's .ppd (PostScript printer definition) file. What do I have to add to get a new page size working properly? ...

Implementing my own print preview ?

I have developed my own Report Control which is simply nothing but drawing text on a CDC of the control window's client DC. I have got the printing function to work too. The report output is sent to the printer directly. However I want to let the user know the output before the report is actually printed. I cannot do this using MFC's p...

Printing on a template form

Hi, I have a template form (paper form) that I want my application to print on but I want the printer to print at specific places on the form. I am not sure how to do it in C# so I can tell the application (or webform) to print at a specific position. Any idea how to do that? Thanks for the help ...

Print Embedded pdf from Excel worksheet

Hi, I have a pdf file embedded in an excel worksheet that is opened through and icon. This icon object will have a specific name (i.e., "ObectToPrint"). What I need to do is print this pdf file without actually opening it. Is this possible? Thanks! ...

Print Bitmap Visual Basic 6

Hi all, I needed to print a .bmp file to a printer using visual basic 6. Does anyone know how i can do this using the Printer.Print method. Thanks ...

Java Print Service: PrintServiceLookup.lookupPrintServices does not return networked printers

If I run my JBoss application from the Windows command prompt I can get the list of printers (including networked printers just fine). If I run my JBoss application as a Windows service, I only get the list of printers that are directly connected to the machine. The networked printers don't show up. Here is the Java code I use to get...

How to use command-line arguments to print ms office files?

hi all: We are doing an app to manage and print word, excel, power point and pdf files... No application can be shown to the user when printing to do that we find some command-line arguments that work well: (using openoffice.org) "C:\Program Files\OpenOffice.org 3\program\soffice.exe" -norestore -nofirsts tartwizard -nologo -headless...

create printbatch to print multiply flowdocuments

How to print multiply flowdocumets in a batch? Following code should print different documents but print the same. This sample works pretty fine only if you print to the xps printer. var printDialog = new PrintDialog(); if(printDialog.ShowDialog() == true) { var xpsDocumentWriter = PrintQueue.CreateXpsDocumentWriter(printDialog...

Does anyone have experience with the Nanoptix model of Ticket Printers?

We currently use Nanoptix Paychex3 ticket printers on a fairly large project. We use a DLL provided by the manufacturer to send the print raw data directly to the printer, which works pretty well, but we have found that the usb port communication drops from time to time (as often as every 10 prints) and need to find a solution. They ha...

Printing a char* in C++

I'm writing a simple program. There is only one class in it. There is a private member 'char * number' and two function (there will be more, but first these should work correctly :) ). The first one should copy the 'source' into 'number' variable (and I suppose somewhere here is the problem): LongNumber::LongNumber(const char * source ...

Temporarily Redirect STDOUT to /dev/null - Not Working All The Time

I am using Server version: Apache/1.3.34 (Debian) mod_perl - 1.29 By refering to STDIN, STDOUT, and STDERR Streams #!/usr/bin/perl5 package main; use strict 'vars'; { # Our mighty holy legacy code love to print out message in the middle of operation. Shihh.... # Let's quietly redirect those message to /dev/null. my $nul...

WIA Automation for scanner color intent is not working

I cannot get my Canon Pixma MP150 to scan a color scan from c# code. The following code is resulting in a black and white image, or if I change the value of 6146 to 2 then a grayscale image is created. I would like to be able to have a color scan from code. I know the scanner does color images because I can do one through the xp wizard i...