Drawing lines other than with "-"

  • Thread starter Thread starter Zach
  • Start date Start date
Z

Zach

In an invoicing program I draw lines in a text file
using:

new string ("-",73)
new string ("=",73)

These lines look awful.
Is there a better way?

Much obliged.
Zach.
 
Had you thought about outputting HTML? You can only use the characters in a
text file but an invoice rendered in HTML can be as rich as you like.

--
Bob Powell [MVP]
Visual C#, System.Drawing

Find great Windows Forms articles in Windows Forms Tips and Tricks
http://www.bobpowell.net/tipstricks.htm

Answer those GDI+ questions with the GDI+ FAQ
http://www.bobpowell.net/faqmain.htm

All new articles provide code in C# and VB.NET.
Subscribe to the RSS feeds provided and never miss a new article.
 
I don't want to get into HTML.

Re alternatives for:

new string ("-",73)

Can one use unicode (&#151??) If so, how
should that be done, please give example code.

Many thanks.

Zach.
 
Zach said:
In an invoicing program I draw lines in a text file
using:

new string ("-",73)
new string ("=",73)

These lines look awful.
Is there a better way?

Much obliged.
Zach.

What about underscores?
_______________________
 
It used to be that character sets had all sorts of cool things in. That's
not much of an option these days because almost everything is proportional.
Aside from John's suggestion of underscores for horizontal lines and pipes
'|' for vertical lines I have nothing to suggest.

Maybe you can use some wingdings??

Sorry.

--
Bob Powell [MVP]
Visual C#, System.Drawing

Find great Windows Forms articles in Windows Forms Tips and Tricks
http://www.bobpowell.net/tipstricks.htm

Answer those GDI+ questions with the GDI+ FAQ
http://www.bobpowell.net/faqmain.htm

All new articles provide code in C# and VB.NET.
Subscribe to the RSS feeds provided and never miss a new article.
 
I am using Courier with proportional spacing.

Bob Powell said:
It used to be that character sets had all sorts of cool things in. That's
not much of an option these days because almost everything is proportional.
Aside from John's suggestion of underscores for horizontal lines and pipes
'|' for vertical lines I have nothing to suggest.

Maybe you can use some wingdings??

Sorry.

--
Bob Powell [MVP]
Visual C#, System.Drawing

Find great Windows Forms articles in Windows Forms Tips and Tricks
http://www.bobpowell.net/tipstricks.htm

Answer those GDI+ questions with the GDI+ FAQ
http://www.bobpowell.net/faqmain.htm

All new articles provide code in C# and VB.NET.
Subscribe to the RSS feeds provided and never miss a new article.
 
So my conclusion should be that it isn't possible
and I am left with ...new string ('-', number_off);

??
 
Re the post below: The function gives ---
i.e. a discontinuous and ugly line. I would
wish to draw a continuous line, however
not using underscores, which would be
an option, because then you get the line
too low. The line is drwan in a text file
which I print. I do not wish to use HTML,
with which I understand the problem could
be solved, because the application is
written and I do not want to rewrite the
whole thing.

Zach.
 
i havent tried this, but how about using the
ascii drawing chars? (i cant find them in Word)
or the Em dash (ascii 151)

--
Grace + Peace,
Peter N Roth
Engineering Objects International
http://engineeringobjects.com
Home of Matrix.NET
 
Back
Top