I have a print function in an application I made on CSharp. But I don’t like the way the document is formatted and its hard to specifically format the text to the printer or sort of like that.
Here is the way I format it. I hope there is a more dynamic and efficient way of doing this so that it could be compatible for all computers or laptop that use it.
are you looking do something that would format the spaces already.. for example
If I wanted to WriteLine(“** HELLO **);
I would do something like this
so in your case you can follow this example and count out the number of spaces that you are wanting and if you need to make a few new String Variables to hold the different number of spaces plus it will be cleaner when reading.. this is a simple example
just play around with what you need