Click here to Skip to main content
15,896,063 members
Home / Discussions / C#
   

C#

 
GeneralRe: File I/O - New Line Character Pin
ragnaroknrol18-Feb-10 3:46
ragnaroknrol18-Feb-10 3:46 
GeneralRe: File I/O - New Line Character Pin
1.21 Gigawatts18-Feb-10 3:49
1.21 Gigawatts18-Feb-10 3:49 
GeneralRe: File I/O - New Line Character Pin
ragnaroknrol18-Feb-10 4:08
ragnaroknrol18-Feb-10 4:08 
AnswerRe: File I/O - New Line Character Pin
Gideon Engelberth18-Feb-10 16:08
Gideon Engelberth18-Feb-10 16:08 
GeneralRe: File I/O - New Line Character Pin
1.21 Gigawatts18-Feb-10 21:37
1.21 Gigawatts18-Feb-10 21:37 
Questioninstallation prerequisites Pin
Ryan Minor18-Feb-10 2:17
Ryan Minor18-Feb-10 2:17 
QuestionImage Scroll Pin
VCsamir18-Feb-10 2:10
VCsamir18-Feb-10 2:10 
Questionprint orders from different places Pin
jogisarge18-Feb-10 1:51
jogisarge18-Feb-10 1:51 
Hello,

i am very new to C# so please be patient.

i am printing orders in my app.
so i have a button which creates the printjob.
the paper will be written in the Printpage-Event.

now i want to have a function that gets th order-object as a parm
and print it on the paper.

the reason is, that an order must be printed on severall programm modules.

private void btnDruck_Click(object sender, EventArgs e)
{
	PrintDocument Druckjob = new PrintDocument();
	PrintDialog Druckermenue = new PrintDialog();
	PrintPreviewDialog Druckpreview = new PrintPreviewDialog();
	Druckjob.DocumentName = "Rechnung";

	Druckjob.PrintPage += new PrintPageEventHandler(Druckjob_PrintPage);
	Druckpreview.Document = Druckjob;
	Druckermenue.Document = Druckjob;
	if (Druckermenue.ShowDialog() == DialogResult.OK)
	{
		Druckjob.Print();
	}
	Druckjob.PrintPage -= new PrintPageEventHandler(Druckjob_PrintPage);
	 
}
void Druckjob_PrintPage(object sender, PrintPageEventArgs e)
{
	Graphics g = e.Graphics;
	StringFormat lineFmtRight = new StringFormat();
	lineFmtRight.Alignment = StringAlignment.Far;
	g.PageUnit = GraphicsUnit.Millimeter;

	// Druckausgabe ...
	// Drucken ..

	g.Dispose();
}


bye jo
QuestionLoose coupling Pin
Mogamboo_Khush_Hua18-Feb-10 1:51
Mogamboo_Khush_Hua18-Feb-10 1:51 
AnswerRe: Loose coupling Pin
Keith Barrow18-Feb-10 2:15
professionalKeith Barrow18-Feb-10 2:15 
AnswerRe: Loose coupling Pin
Padmanabh Ganorkar18-Feb-10 2:16
Padmanabh Ganorkar18-Feb-10 2:16 
QuestionLoose coupling Pin
Mogamboo_Khush_Hua18-Feb-10 1:51
Mogamboo_Khush_Hua18-Feb-10 1:51 
QuestionC# Newbie. Need some help. Pin
suprsnipes18-Feb-10 1:15
suprsnipes18-Feb-10 1:15 
AnswerRe: C# Newbie. Need some help. Pin
Luc Pattyn18-Feb-10 1:27
sitebuilderLuc Pattyn18-Feb-10 1:27 
AnswerRe: C# Newbie. Need some help. Pin
kevinnicol18-Feb-10 3:09
kevinnicol18-Feb-10 3:09 
GeneralRe: C# Newbie. Need some help. Pin
harold aptroot18-Feb-10 3:32
harold aptroot18-Feb-10 3:32 
GeneralRe: C# Newbie. Need some help. Pin
Luc Pattyn18-Feb-10 3:32
sitebuilderLuc Pattyn18-Feb-10 3:32 
GeneralRe: C# Newbie. Need some help. Pin
suprsnipes2-Mar-10 17:50
suprsnipes2-Mar-10 17:50 
GeneralRe: C# Newbie. Need some help. Pin
Luc Pattyn3-Mar-10 1:32
sitebuilderLuc Pattyn3-Mar-10 1:32 
QuestionCustom Collections in C# Pin
arut jothi18-Feb-10 0:53
arut jothi18-Feb-10 0:53 
AnswerRe: Custom Collections in C# Pin
Keith Barrow18-Feb-10 1:02
professionalKeith Barrow18-Feb-10 1:02 
GeneralRe: Custom Collections in C# Pin
Luc Pattyn18-Feb-10 1:31
sitebuilderLuc Pattyn18-Feb-10 1:31 
GeneralRe: Custom Collections in C# Pin
Keith Barrow18-Feb-10 1:34
professionalKeith Barrow18-Feb-10 1:34 
AnswerRe: Custom Collections in C# Pin
Luc Pattyn18-Feb-10 1:30
sitebuilderLuc Pattyn18-Feb-10 1:30 
QuestionHow to add Textbox Dynamically Pin
It_tech18-Feb-10 0:00
It_tech18-Feb-10 0:00 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.