Hello everyone,
How can I solve this error?
I have tried,
- private void PrintImageHandler(object sender, PrintPageEventArgs ppeArgs)
- {
- string[] ListViewItemsData = ListViewItemsCollections.Select(i => Convert.ToString(i.FilePath) + Convert.ToString(i.Parent_File_Name) + "_" + Convert.ToString(i.Child_File_Name)).ToArray();
-
- List<Bitmap> images = new List<Bitmap>();
- foreach (var file in ListViewItemsData)
- {
- images.Add(new Bitmap(file));
- }
-
- if (images != null)
- {
- ppeArgs.Graphics.DrawImageUnscaled(images, 0, 0);
- }
- ppeArgs.HasMorePages = (images != null);
- }
Please help me.