Thursday, 22 August 2013

Print Multiple Page Image

Print Multiple Page Image

I am developing winform application. I have 5-6 different images stored in
my "C:\temp" drive. Now i want to retrieve all images and print all
together. For this i have tried below code in c#
objPrintImage = Image.FromFile("C:/temp");
objDimension = new FrameDimension(new System.Guid());
PrintDocument objPrintDoc = new PrintDocument();
objPrintDoc.PrintPage += new
PrintPageEventHandler(this.objPrintDoc_PrintPage);
if (objPrintDoc.PrinterSettings.IsValid)
{
objPrintDoc.Print();
}
But i got error in first line only. Error says "illegal character in path"
Please help me.
Thanks, Prashant

No comments:

Post a Comment