[C#2.0] Print a tif image  
Author Message
Kinju





PostPosted: .NET Framework Networking and Communication, [C#2.0] Print a tif image Top

Hi all,

I'm trying to print an tif file with the PrintDocument component:

if(oFileToPrint.Exists)

{

System.Drawing.Printing.PrintDocument oPrinter = new System.Drawing.Printing.PrintDocument();

oPrinter.PrinterSettings.PrintFileName = oFileToPrint.FullName;

oPrinter.PrinterSettings.DefaultPageSettings.Color = false;

oPrinter.DocumentName = "Suivit du dossier " + oFile.GetAnnoune();

oPrinter.Print();

}

The file exists and the printer is connected (I have print a test page)

After this code execute, Windows display "the document 'Suivit du dossier 457754' ha been sent" etc... but there is no print, and no exception...

What can I do

Thanks :)

Aurelien



.NET Development5  
 
 
Mike Flasko





PostPosted: .NET Framework Networking and Communication, [C#2.0] Print a tif image Top

This forum is dedicated to questions about networking via the System.Net namespace. Please repost this to a more appropriate forum.