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
|