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


Mike GoldRank #50 · 30.6K reputationPosted Aug 9, 2007, 12:28 PM EDT
My tutorial has a special section for handling tabs that might not work quite right. I would look into Microsoft's knowledge base on the topic:
http://support.microsoft.com/kb/812425
Todd Vance157 reputationPosted Aug 10, 2007, 4:25 AM EDT
Ok Mike, I will look at that. Thanks much.
I wonder if I just use spaces if it might be easier.... hmmm I might also try that.
ONE Question - do you have a tute on how to make quick changes in your string going into your RTB? Like I want some words bold and some italicized... Could you point me in the direction of a tute on that??? It can't be as hard as it looks but I just can't figure it out on my own.
Thanks!
Mike GoldRank #50 · 30.6K reputationPosted Aug 10, 2007, 7:11 AM EDT
Todd Vance157 reputationPosted Aug 10, 2007, 8:12 AM EDT
Sounds good! Is there an easy way to find out what words are at what location or is it a hit and miss thing?
I will work on figuring out how to do it that way! THANKS!