Click here to Skip to main content
15,909,440 members
Home / Discussions / Visual Basic
   

Visual Basic

 
QuestionProcess Object saying "Access Denied" Pin
specialdreamsin17-Sep-09 1:37
specialdreamsin17-Sep-09 1:37 
AnswerRe: Process Object saying "Access Denied" [modified] Pin
tosch17-Sep-09 2:15
tosch17-Sep-09 2:15 
QuestionDate problem Pin
rmedo17-Sep-09 0:16
rmedo17-Sep-09 0:16 
AnswerRe: Date problem Pin
Ashfield17-Sep-09 1:41
Ashfield17-Sep-09 1:41 
QuestionProblem in using .selection.type Pin
Padma N16-Sep-09 19:54
Padma N16-Sep-09 19:54 
AnswerRe: Problem in using .selection.type Pin
Johan Hakkesteegt16-Sep-09 20:57
Johan Hakkesteegt16-Sep-09 20:57 
GeneralRe: Problem in using .selection.type Pin
Padma N16-Sep-09 21:20
Padma N16-Sep-09 21:20 
GeneralRe: Problem in using .selection.type Pin
Johan Hakkesteegt16-Sep-09 21:44
Johan Hakkesteegt16-Sep-09 21:44 
The basic idea is to build a string, and save it to a file.

Point 6 can also be done with a (free) text editor like for example PSPad[^]
Point 7 can also be done in VB6. Look at what the xml file looks like, and have your code build a string exactly like it. So for example:
Dim MyFileContent As String
MyFileContent = "<someXMLelement>Some dynamic content here </someXMLelement>"


In the end the file will be built in memory, so it can not be accidentally opened while it is still being written.
This gives you some added advantages:
- You will able to run your application, and write the documents, on a PC or server without needing MS Office.
- This method will make the document version independent, so a user can open it, no matter which version of MS Office they have.
- You could build in some email functionality, and send the document to someone's email instead of storing it.
- Or you could instead store the document on a server or network storage media, so you won't have to install your application on each user's PC separately.

Finally, you really need to consider why your work wants you to use VB6. There are no good reasons. Anything that it can do, can be accomplished much easier with VB.NET. The editor (Visual Studio 2008 Express) for VB.NET is free, and makes writing code 100 times easier, compared to whatever editor you use to write VB6 code. It is much much easier to debug, and it will take you 2 weeks tops to get used to.
VB6 is outdated, not supported anymore by Microsoft, and you will not find many people who can help you with it.

My advice is free, and you may get what you paid for.

QuestionVisual Basic KeyBoard Pin
Bob Beaubien16-Sep-09 15:00
Bob Beaubien16-Sep-09 15:00 
AnswerRe: Visual Basic KeyBoard Pin
Christian Graus16-Sep-09 15:09
protectorChristian Graus16-Sep-09 15:09 
GeneralRe: Visual Basic KeyBoard Pin
Bob Beaubien16-Sep-09 15:16
Bob Beaubien16-Sep-09 15:16 
GeneralRe: Visual Basic KeyBoard Pin
Bob Beaubien16-Sep-09 15:25
Bob Beaubien16-Sep-09 15:25 
GeneralRe: Visual Basic KeyBoard Pin
Christian Graus16-Sep-09 15:29
protectorChristian Graus16-Sep-09 15:29 
GeneralRe: Visual Basic KeyBoard Pin
Bob Beaubien16-Sep-09 15:37
Bob Beaubien16-Sep-09 15:37 
GeneralRe: Visual Basic KeyBoard Pin
N a v a n e e t h16-Sep-09 15:42
N a v a n e e t h16-Sep-09 15:42 
GeneralRe: Visual Basic KeyBoard Pin
Christian Graus16-Sep-09 15:50
protectorChristian Graus16-Sep-09 15:50 
GeneralRe: Visual Basic KeyBoard Pin
Bob Beaubien16-Sep-09 16:14
Bob Beaubien16-Sep-09 16:14 
GeneralRe: Visual Basic KeyBoard Pin
Christian Graus16-Sep-09 17:29
protectorChristian Graus16-Sep-09 17:29 
AnswerRe: Visual Basic KeyBoard Pin
darkelv17-Sep-09 3:11
darkelv17-Sep-09 3:11 
QuestionGetting text from HTML . Pin
Tvojemama16-Sep-09 6:36
Tvojemama16-Sep-09 6:36 
AnswerRe: Getting text from HTML . Pin
Dave Kreskowiak16-Sep-09 6:56
mveDave Kreskowiak16-Sep-09 6:56 
GeneralRe: Getting text from HTML . Pin
Tvojemama16-Sep-09 7:07
Tvojemama16-Sep-09 7:07 
GeneralRe: Getting text from HTML . Pin
Dave Kreskowiak16-Sep-09 8:20
mveDave Kreskowiak16-Sep-09 8:20 
AnswerRe: Getting text from HTML . Pin
0x3c016-Sep-09 6:58
0x3c016-Sep-09 6:58 
GeneralRe: Getting text from HTML . Pin
Tvojemama16-Sep-09 7:04
Tvojemama16-Sep-09 7:04 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.