TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Brad
NA
3
0
Printing / formatting question
Mar 8 2006 4:56 PM
Hello I am very new to c#.
I am trying to send the below code to a printer. I works, but I want to bold the labels (ie. Name ...) Any ideas how to format in a string?
writer.WriteLine(
"Name: "
+ rdr[
"uname"
].ToString());
writer.WriteLine(
"Password: "
+ rdr[
"pass"
].ToString());
writer.WriteLine(
"User Type: "
+ rdr[
"uType"
].ToString());
writer.WriteLine(
"Notes: "
);
writer.WriteLine(
"\t"
+ rdr[
"notes"
].ToString());
writer.WriteLine(
"---------------------------"
);
writer.WriteLine(
""
);
Also anyone know of a good place to fine info on printing in general in c#?
Reply
Answers (
2
)
UserControl and static attributes
How to reference checkedlistbox from one class to another