|
Post by Mark Dunham on Aug 1, 2021 8:59:08 GMT -5
I am saving input from large text boxes to .txt below is kind of an example the text editor here removed some of the spacing. My question is does any have suggestion on formatting large text box text so when it gets printed it does not get cut off or do I need to save as .doc or .rtf or am I looking at this wrong and making it overly complicated.
=================================================================================== Character Sheet ===================================================================================
Name: Mark Age: 43 Size: Medium Height: 2 Weight: 120 Hair Color: Brown Eye Color: Hazel Religion: The Final Light Race: Brutgor Color: Nationality: Avalian Kingdom: Mooncry Language: Teyn Reputation: Low profile, discreet nature and low key, kind but cold.
Racial Feature 1: Giant Blood - The ability to wield two handed weapons with one hand due to size. Racial Feature 2: Racial Feature 3: Racial Feature 4:
Legacy: Brutgorian Rage - Brutgors deal with fear differently. When forced into a State of Shock by any natural means, they always become Berserk (treat as Berserk Condition).
|
|
|
Post by tsh73 on Aug 1, 2021 13:13:42 GMT -5
It gets printed via WHAT exactly? Size it will take depends on font & font size & line spacing & print margins Plain text has no control on any of this.
You likely could calibrate your setup - like, get how wide line could be and how much lines fits to page - but hardly could count on user has same setup.
My suggestion would be then printing spit to something with print preview. (you can just call wordpad or write (actually calls wordpad), or save as HTML - any browser has print preview)
Just my 0.02$
|
|
|
Post by Rod on Aug 1, 2021 15:36:34 GMT -5
If it is a few lines of text as you show it should not be getting cut off. If ther3 are lots of blank lines then perhaps you exceed the page length and the bottom lines will not print.
So remove blank lines? Are you printing the .txt file within Liberty, if so how? Can we see the printing code.
|
|
|
Post by Mark Dunham on Aug 1, 2021 15:47:42 GMT -5
It gets printed via WHAT exactly? Size it will take depends on font & font size & line spacing & print margins Plain text has no control on any of this. You likely could calibrate your setup - like, get how wide line could be and how much lines fits to page - but hardly could count on user has same setup. My suggestion would be then printing spit to something with print preview. (you can just call wordpad or write (actually calls wordpad), or save as HTML - any browser has print preview) Just my 0.02$ If I print a physical copy on 8x11 paper. I think HTML might be the best route I can format it with HTML as well. Thanks.
|
|
|
Post by Mark Dunham on Aug 1, 2021 15:50:47 GMT -5
If it is a few lines of text as you show it should not be getting cut off. If ther3 are lots of blank lines then perhaps you exceed the page length and the bottom lines will not print. So remove blank lines? Are you printing the .txt file within Liberty, if so how? Can we see the printing code. It is the width of the text. When saving to .txt format the textbox wraps in my program but when saving to .txt it does not wrap so it does get cut off because it is wider than a sheet of paper. I am saving to .txt and letting the user print from there. I do like the HTML route the tsh73 suggested I don't know why I didn't think of it probably because I am too close to the project. LOL
|
|
|
Post by Mark Dunham on Aug 2, 2021 9:41:06 GMT -5
Just wanted to show on the thread what I was able to accomplish with the suggestions provided. I still have more to do but I am now on the right track. Thank you all again. Image BeforeImage After
|
|
|
Post by tsh73 on Aug 2, 2021 12:34:03 GMT -5
Try table (frankly speaking, I did this in Open Office, but saved as xhtml it is pretty sleek)
|
|
|
Post by Mark Dunham on Aug 2, 2021 12:40:05 GMT -5
Try table (frankly speaking, I did this in Open Office, but saved as xhtml it is pretty sleek) I will have to check it out. Thank you
|
|