4
Answers

Print is different from how my textbox looks.

Todd Vance

Todd Vance

17y
3.2k
1

Hey guys,

I used Mike Gold's tute on printing on this site and it worked great for me except for one thing.  I have a string that goes into a RTB  -- here is the code:

amortizeString = "Payment: \t\tPrincipal: \t\tInterest: \t\tEnding Balance: \r\n";

some stuff

for (int i = 1; i < payPeriods; i++) //Iterate through the payments!

{

amortizeString += i.ToString() + " \t\t" + principalPayment.ToString() + " \t\t" + interestPayment.ToString() + " \t\t" + principalString + " \r\n";

=================

This iterates through my amortization -- then I finally place that string in my textbox like so :

amortizeTB.Text = amortizeString;

=================

So it looks just fine in my textbox but when I go to print it out, the numbers are no longer aligned with the column headers.... I am sure this is because of the paper size or something like that, but can someone tell me how to go about fixing this?

Thanks!
Todd

Answers (4)