Help Wanted

visual basic help – destroyer

Destroyer

Member

Posts: 31
From: Bismarck, ND
Registered: 10-06-2002
i need to know how to make it so you can have the users save, load, and print files using visual basic can anyone help
thanks in advance
chosenservant
Member

Posts: 16
From: Australia
Registered: 11-09-2002
I suppose it depends on the type of file, where you get it from, how and where you want to display it.

Try searching on google.com, or give us more information on what you are trying to do.

Ascent
Member

Posts: 64
From:
Registered: 01-20-2001
Yes, if you give us more information, then we can help you some.

I'm pretty proficient at Visual Basic... Are you trying to save settings? Or data? And if data, what kind?

And are you wanting to just simply output some information, or print out some nice reports, or print out information from a database, etc.

-Ascent

Destroyer

Member

Posts: 31
From: Bismarck, ND
Registered: 10-06-2002
I was bored so i made a word processor and now i want to finish it by adding a save/open feature for .txt and or .doc and a print feature
InsanePoet

Member

Posts: 638
From: Vermont, USA
Registered: 03-12-2003
Oh, i use to be able to do that, but i stopped coding quite a while ago.

------------------
"I find myself a desire which no experience in this world can satisfy, the most probable explanation is that I was made for another world!"
-C. S. Lewis

Destroyer

Member

Posts: 31
From: Bismarck, ND
Registered: 10-06-2002
another problem i have is getting the combobox i am using for fonts to change the font, i don thitnk im using it properly to do that i have tried:

txtword.Font = cmbfont.list

txtword.FontName = cmbfont.list

txtword.Font = cmbfont.Text
and
txtword.FontName = cmbfont.Text

txtword is my main text box and cmbfont is the combo box

chosenservant
Member

Posts: 16
From: Australia
Registered: 11-09-2002
I don't know of any way to edit/save .doc files without having word installed in the system. Another option is to look into RichTextBox object to control .rtf, because it can also store the formatting of the document.

Here is a link on how to open/save .txt files using a list box as a medium.
http://users.mikrotec.com/jpeyton/wwwpages/FileAccess/Discussion11.html

Otherwise you can look at manipulating the text file using sequential access, ie. reading line by line with the FileSystemObject method.

Some information on printing:
http://www.developerfusion.com/show/86/3/

Hope this helps, and please feel free to comment or suggest more efficient methods.

silicon_chippy

Member

Posts: 208
From: Scotland
Registered: 10-26-2002
Are you creating this for an exam??

------------------
I have been driven many times to my knees by the overwhelming conviction that I had nowhere else to go. My own wisdom, and that of all around me seemed insufficient for the day. ABRAHAM LINCOLN

Destroyer

Member

Posts: 31
From: Bismarck, ND
Registered: 10-06-2002
I have word, and no not for an exam, just was bored
chosenservant
Member

Posts: 16
From: Australia
Registered: 11-09-2002
I used to find more references on google.com, but here's just one of them.
http://www.experts-exchange.com/Programming/Programming_Languages/Visual_Basic/Q_20320010.html