|
-
Jul 15th, 2004, 06:26 PM
#1
Thread Starter
Lively Member
Writing to a File:Changing Font Features
I am currently workign on a project where I need to create a report for my client, The report is generated, and then written to word using the WriteLine method. I am wondering how i would change the font, font size, make the font italic bold, underlined etc etc... right now it is a string, but if there is a better way to do it, or that won't work then i'm willing to use something else!
It is like wiping your ass with silk, I love it!
-
Jul 15th, 2004, 07:00 PM
#2
Sleep mode
VB Code:
Me.TextBox1.Font = New Font("Microsoft Sans Serif", 20, System.Drawing.FontStyle.Italic)
-
Jul 15th, 2004, 07:39 PM
#3
Thread Starter
Lively Member
Um...i'm not displaying it into a textbox...I'm saving it in a .doc file...
I want the file to look something like this
Header
Sub Header
Information
I know how to change what shows up in a text box, i'm not that n00bish lol
It is like wiping your ass with silk, I love it!
-
Jul 15th, 2004, 07:42 PM
#4
Sleep mode
Hang on !I'll power up a demo for you !
-
Jul 15th, 2004, 07:44 PM
#5
Thread Starter
Lively Member
Aight, and if your demo doesnt work, i found something else that looks promising...
It is like wiping your ass with silk, I love it!
-
Jul 15th, 2004, 07:51 PM
#6
Sleep mode
-
Jul 15th, 2004, 07:54 PM
#7
Thread Starter
Lively Member
lol, uh...i don't think u got all of it into the rar file!! but thanks for trying, next time ur on update it if u will thanks!
It is like wiping your ass with silk, I love it!
-
Jul 15th, 2004, 07:57 PM
#8
Sleep mode
What do you mean , it's not working ??
-
Jul 15th, 2004, 07:57 PM
#9
Thread Starter
Lively Member
all i got was the source file...Maybe i downloaded it wrong, but i didnt even get any forms...let alone a project file...
It is like wiping your ass with silk, I love it!
-
Jul 15th, 2004, 08:01 PM
#10
Sleep mode
If you have winrar and VS.NET 2003 , then you won't have any problems running the project . I downloaded it and it's working . (if you're having problems converting the proj back to VS.NET 2002 , get the link below my sig.)
-
Jul 15th, 2004, 08:11 PM
#11
Thread Starter
Lively Member
Well that's not exactly what i meant, but i didnt think of using the FontDialog control, so i'll just use that to do what i need to do, thanks!!
I'm doing everything automatically, the reports are created by the program, so i need the program to format it as well, the user doesnt type anything, they simply click Go, and then they choose what file they want to analyze, and then they choose where they want the reports to be saved... thanks!!
It is like wiping your ass with silk, I love it!
-
Jul 15th, 2004, 08:57 PM
#12
Sleep mode
I know using FontDialog doesn't solve your problem and you can't use it for this situation at least. The demo meant to show you how to set font and save the file . You can , for example , select (search or autohighlight in RTB)the lines you want to change their font properties then set them before it's shown to the user (no Font Dialogs).
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|