473,414 Members | 1,777 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,414 software developers and data experts.

Print another image to the second page in C#

how do i print the second image in the second page of the print document..

Expand|Select|Wrap|Line Numbers
  1. private void printDocument1_PrintPage(object sender, System.Drawing.Printing.PrintPageEventArgs e)
  2.     {
  3.         Graphics graphics = e.Graphics;
  4.  
  5.         Image bgFront = ((PictureBox)pictureBox_IDFront).Image;
  6.         e.Graphics.DrawImage(bgFront, 0, 0, 212, 337);
  7.  
  8.  
  9.         Image bgBack = ((PictureBox)pictureBox_IDBack).Image;
  10.         e.Graphics.DrawImage(bgBack, 212, 0, 212, 337);
  11.     }
i want to print the second image to another page. i will only need 2 pages for this. the front and the back image. each pages includes some string like this is for the second page. the back page.

Expand|Select|Wrap|Line Numbers
  1. e.Graphics.DrawString("Employee Information", printFont, Brushes.Black, y, x);
  2.         x = x + (printFont.Size + spacing);
  3.         e.Graphics.DrawString("Name: " + this.label_FullName.Text, printFont, Brushes.Black, y, x);
  4.         x = x + (printFont.Size + spacing);
  5.         e.Graphics.DrawString("Address: ", printFont, Brushes.Black, y, x);


thank you very much..
Attached Images
File Type: jpg id.jpg (35.8 KB, 105 views)
Aug 10 '16 #1
0 1434

Sign in to post your reply or Sign up for a free account.

Similar topics

8
by: Steve | last post by:
Hi; I'm making an HTML screen that I would like to print on a single page: http://www.geocities.com/beforewisdom/Tech/Archive/ebnfNotation.html Doing a print preview with Mozilla 1.6 on...
21
by: Steel | last post by:
Hi at all, I have a very long html page with many photo. Therefore the best to print this page is to print the some page as PDF. Therefore I maked a PDF file like my page to print best. I'ld want...
6
by: abhishek007p | last post by:
hi, i am new to asp.net. here is what i want to do. i have 2 aspx pages, first.aspx and second.aspx now from the first.aspx i want to give the second.aspx page values like ...
0
by: magic man | last post by:
I have written an application in VB.Net using server side controls. I realize that I need client side controls to print anything at the clients computer. I have a web page that consists of a 1...
1
by: Paolo matador | last post by:
Hi All, i have a little problem with my web application. I need to print a web page, shrinked on a thermal printer that not supporting A4 format. The printer is this:...
3
by: chuck gregory | last post by:
I have minimized the left-right margins to the max and pulled everything else in to avoid an overlap onto a second page, but when I print my access form, there's a little bit of a straight line that...
1
by: thirunavukarasukm | last post by:
I have a link wich opens a the second page with links wich call a javascript function. I have some problem with javascript. i am two aspx page.. in my first aspx page contain the second...
0
coolv
by: coolv | last post by:
Hello everyone, I have problem with getting a print of page in my application(ASP>NET,C#). I have reciept page in my application.in this page a data which i want to print comes from...
5
onlymars
by: onlymars | last post by:
helloo guys, i have an image gallery page which have thumbnails at the bottom of the screen and the main image is in the middle of the page, i want that users click on the thumbnail pic's and the...
5
by: Wiinie | last post by:
Hi, all I am new, I am using rails to write the application... and now I want to make a function for print the specific div in the page. What can I do with this? Please give me some advice....
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.