if (objTble_Documents.Count() != 0) { PrintDocument pd = new PrintDocument(); pd.PrintPage += new PrintPageEventHandler(PrintPage); System.Windows.Forms.PrintDialog pdi = new System.Windows.Forms.PrintDialog(); pdi.Document = pd; if (pdi.ShowDialog() == System.Windows.Forms.DialogResult.OK) { pd.Print(); } else { MessageBox.Show("Print Cancelled"); } }
private void PrintPage(object o, PrintPageEventArgs e) { foreach (var i in objTble_Documents) { objListViewItemsData.Add(new ListViewItemsData() { GridViewColumnName_ImageSource = (Convert.ToString(i.FilePath) + Convert.ToString(i.Parent_File_Name) + "_" + Convert.ToString(i.Child_File_Name)), }); } System.Drawing.Image img = System.Drawing.Image.FromFile("?");/*Here How can I add all images from 'objListViewItemsData' list*/ System.Drawing.Point loc = new System.Drawing.Point(100, 100); e.Graphics.DrawImage(img, loc); }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)