Click here to Skip to main content
15,914,488 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Dear all
I am creating a software fatching data from SQL and want to Print in a paper with Company Logo . Like whatever i want to print it should come in mid of a paper and top of the paper CompanyLogo . Kindly help me to create this kind of software .They give me there logo in Image.

structure is like this:


_________________________________________________________________
________
|||LOGO|
________



Name of product: Mediction name

Price : 25.25

vat : 56%
_______
Print

________________________________________________________________


Now i want to print this :



Please help me thanks in advance.
Posted
Updated 22-Feb-20 11:23am

Use a PrintDocument Class[^] - the link provides an example.
 
Share this answer
 
Try this URL.....................Printing Documents from C# using OpenOffice Writer[^]
 
Share this answer
 
This example-[C# Printing an Image File][^] will help you.
C#
Image photo = Image.FromFile("YourImageFile");
PrintDocument printDoc = new PrintDocument();
printDoc.PrintPage += new PrintPageEventHandler(printDoc_PrintPage);
printDoc.Print();
 
Share this answer
 
v2

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