Click here to Skip to main content
15,881,033 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
i need to print the company logo in the print preview page.

//Draw Header
e.Graphics.DrawString(_ReportHeader,
new Font(gw.Font, FontStyle.Bold),
Brushes.Black, e.MarginBounds.Left,
e.MarginBounds.Top - e.Graphics.MeasureString(_ReportHeader,
new Font(gw.Font, FontStyle.Bold),
e.MarginBounds.Width).Height - 50);

this is how i print header text. but i want to get image form source or database to print..
Posted
Comments
george4986 24-Jan-14 1:43am    
check these links
http://satishjdotnet.blogspot.in/2009/03/external-images-in-rdlc-reports-aspnet.html
http://stackoverflow.com/questions/5454972/setting-image-source-in-rdlc-report-dynamically

1 solution

Just create an System.Drawing.Image (or Bitmap) object and then print it using e.Drawing.DrawImage method.
 
Share this answer
 

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