I have developed shareware program where it is possible to draw form and reports, then print it out.
Small sample from it
I was copied some lines from my software, and hoping it is workable and understandable.
public void PRINTOUT()
PrintDialog pd = new PrintDialog();
pd.Document = new PrintDocument();
if (pd.ShowDialog() == DialogResult.OK)
pd.Document.PrintPage += new PrintPageEventHandler (PrintPage);
private void PrintPage(object sender, PrintPageEventArgs ev)
ev.Graphics.DrawString("* * Header * * ", Font, Brushes.Black, 100, 100); //Print header text, Font has been
//defined elsewhere (in form ?)
ev.HasMorePages=false; // Last Page (1 page)
I Developed application in C# with crystal reports and created setup file in third party (Advance) Installer.When i installed my application on client system application is working but ...