Hello programmers:
I am having problem controlling the printing from the text file. This is the issue:
-- My program creates a text file.
-- When the user opens the text file, the information gets display on a text box
-- The form has a print bottom so the user can print the text
- Once the user Click Print, the program opens the text file and started printing. Because some of the strings are too long, it prints one part and the other does not show up
For Example:
Original String:
------------------
Pablo Ozone from store #1319 sold 6 hams on Thursday and 3 more by 9:00 am today!!! $9 incentive pays for Flor!!! Week to date the store has sold 12 hams.
This is got printed on paper (This is happening because the string is too long):
-----------------------------------------------------------------------------------
Pablo Ozone from store #1319 sold 6 hams on Thursday and 3 more by 9:00
QUESTION:
How can I control the width of the string before write it in the text file?
Thanks to all for your time
Daniel
Hollywood, Florida
I am having problem controlling the printing from the text file. This is the issue:
-- My program creates a text file.
-- When the user opens the text file, the information gets display on a text box
-- The form has a print bottom so the user can print the text
- Once the user Click Print, the program opens the text file and started printing. Because some of the strings are too long, it prints one part and the other does not show up
For Example:
Original String:
------------------
Pablo Ozone from store #1319 sold 6 hams on Thursday and 3 more by 9:00 am today!!! $9 incentive pays for Flor!!! Week to date the store has sold 12 hams.
This is got printed on paper (This is happening because the string is too long):
-----------------------------------------------------------------------------------
Pablo Ozone from store #1319 sold 6 hams on Thursday and 3 more by 9:00
QUESTION:
How can I control the width of the string before write it in the text file?
Thanks to all for your time
Daniel
Hollywood, Florida