Click here to Skip to main content
15,886,639 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
i want to create an id printing system in c# that connects to a database but i cant organize the data with the template ,, what should i do please help

What I have tried:

i have tried this but doesnt work

private void printDocument1_PrintPage(object sender, System.Drawing.Printing.PrintPageEventArgs e)
       {
           //Bitmap bmp = Properties.Resources.student_id_final_front1;
           //Image newImage = bmp;


           ////repeat for displays
           //e.Graphics.DrawImage(newImage, 25, 25, newImage.Width, newImage.Height);
           e.Graphics.DrawString("English Name: " + textBox2.Text, new Font("Times New Roman", 12, FontStyle.Regular), Brushes.Black, new Point(80, 80));
           e.Graphics.DrawImage(pbfront.Image, new Point(0, 0));
           e.Graphics.DrawImage(pbback.Image, new Point(180, 0));

       }
Posted
Comments
RaviRanjanKr 21-Mar-17 23:49pm    
sorry to say but your question is still not clear. please try to be more specific while asking question.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900