Nps I also learned about that functional aspect as well![]()
CodingfriendsCode:int coffeePerDay = 10; // need to cut down!!!
it seems to serve you well. i think i would be wise to take in that aspect as well![]()
also i just wanna let you know
on lines that ive labeled 1 and 2 i changed this.text to richtextbox.text(which is the name of my textbox) because it wasnt properly formatting the text in the print preview for some reason. now with the change i made it works great. thank you again seriously.Code:void fillInThePrintDoc(object sender, PrintPageEventArgs e) { int linesPerPage = 0; int charactersOnPage = 0; 1 e.Graphics.MeasureString(richTextBox1.Text, richTextBox1.Font, e.MarginBounds.Size, StringFormat.GenericTypographic, out charactersOnPage, out linesPerPage); 2 e.Graphics.DrawString(richTextBox1.Text, richTextBox1.Font, Brushes.Black, e.MarginBounds, StringFormat.GenericTypographic); }
err durr i meant this.font to richtextbox1.font
Npsjust sometimes like as Smashbrosboy said, explaining in a different way does help at times
looking forward to the finished program![]()
CodingfriendsCode:int coffeePerDay = 10; // need to cut down!!!
next task for me-> figure out how to make it print more than one page XD ** also i like how i just jacked someone else's thread lol **
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks