473,322 Members | 1,408 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,322 software developers and data experts.

Word 2003 + VB.NET

Hi,

Its like a I am searching alot but still not found or satisfy what I found it.

My question is that I had SQL server that contains some data.
I also have a application folder call CUSTDOCUMENT.

Once user cliks a button to retrive a document about the customer I need to
program in this order:

1-I want my user to creat word like document using RichText like component.
MS RichText cannot allow mw to accomplish many formation like we do use
normal Word Document. Then once user types the information about customer he
must also have to save it in predifine folder with predifine name. Example
once the user going to create new customer say ID NO 8, the application
automaticaly creates a empty word document as 0000000008.doc in application
CUSTDOCUMENT folder.

But before it going to create a empty word document it ask user that if they
wish to write someting. If yes then new form opens and they can type anything
about customer in RichText components like textbox. Than in the new form when
they click the SAVE button the document name itself automaticaly as in in
above example
and saves as 0000000008.doc in application CUSTDOCUMENT folder.

2- When user browse the customer information with the application the form
cosist of the customer data and button also poonts the where the word
document is located. Then is user clciks the OPEN button the form that
cotains RichText like components will open and shows the user about the
content of the document that belongs to current Customer that they are
viewing.

For this reason I created RichText like form but I am faild to open any
document or write it. All I need is the kind of component that allows me to
type a MS word document kind of text and if user wants to use the Font.Bold
in certain text than they have to do it. The rich text doesnot alllow to use
it in ceartain text to be bold.

So here is my question. How to achive this? Or where I can get good example
of the
application that does the things that I explained in above.

I can use excel kind of grid or html in Windows Form but why I am not be
able use it the word document in VB.NET 2003.

Does anyone out there to help me, or am I asking too much that is not
possible?

I realy appricate that you spend time to reading my post. And I thank you
for that.

Regs,
Niyazi
May 4 '06 #1
3 2969

Good luck with your search, as far as I know there are no controls or
libaries that you can use to achive this.. I've searched for 'm to! However,
you might be able to do this, by reading out the word document!

word.application.visible = false
word.document = word.application.document.open "your document.dot"
lsText = word.document.range.text

Hoever, you will have separately read out the font's, fontsize's, bold
properties and all other things you want.

There might be another possibility that I am just thinking of: Try to save
it as a temporary file and save it as a word 6 format.... Richttextbox can
read that out!!!!
Don't know if office 2003 can do that but it worth a try!
Michel

"Niyazi" wrote:
Hi,

Its like a I am searching alot but still not found or satisfy what I found it.

My question is that I had SQL server that contains some data.
I also have a application folder call CUSTDOCUMENT.

Once user cliks a button to retrive a document about the customer I need to
program in this order:

1-I want my user to creat word like document using RichText like component.
MS RichText cannot allow mw to accomplish many formation like we do use
normal Word Document. Then once user types the information about customer he
must also have to save it in predifine folder with predifine name. Example
once the user going to create new customer say ID NO 8, the application
automaticaly creates a empty word document as 0000000008.doc in application
CUSTDOCUMENT folder.

But before it going to create a empty word document it ask user that if they
wish to write someting. If yes then new form opens and they can type anything
about customer in RichText components like textbox. Than in the new form when
they click the SAVE button the document name itself automaticaly as in in
above example
and saves as 0000000008.doc in application CUSTDOCUMENT folder.

2- When user browse the customer information with the application the form
cosist of the customer data and button also poonts the where the word
document is located. Then is user clciks the OPEN button the form that
cotains RichText like components will open and shows the user about the
content of the document that belongs to current Customer that they are
viewing.

For this reason I created RichText like form but I am faild to open any
document or write it. All I need is the kind of component that allows me to
type a MS word document kind of text and if user wants to use the Font.Bold
in certain text than they have to do it. The rich text doesnot alllow to use
it in ceartain text to be bold.

So here is my question. How to achive this? Or where I can get good example
of the
application that does the things that I explained in above.

I can use excel kind of grid or html in Windows Form but why I am not be
able use it the word document in VB.NET 2003.

Does anyone out there to help me, or am I asking too much that is not
possible?

I realy appricate that you spend time to reading my post. And I thank you
for that.

Regs,
Niyazi

May 4 '06 #2
Hi Michel,

Thank you but I found article from
http://support.microsoft.com/default...b;EN-US:304643

and I follow it throu and I did it and it is waht I was expecting. It kinds
of turn around but for small application it does the job.

Thank you.

"Michel" wrote:

Good luck with your search, as far as I know there are no controls or
libaries that you can use to achive this.. I've searched for 'm to! However,
you might be able to do this, by reading out the word document!

word.application.visible = false
word.document = word.application.document.open "your document.dot"
lsText = word.document.range.text

Hoever, you will have separately read out the font's, fontsize's, bold
properties and all other things you want.

There might be another possibility that I am just thinking of: Try to save
it as a temporary file and save it as a word 6 format.... Richttextbox can
read that out!!!!
Don't know if office 2003 can do that but it worth a try!
Michel

"Niyazi" wrote:
Hi,

Its like a I am searching alot but still not found or satisfy what I found it.

My question is that I had SQL server that contains some data.
I also have a application folder call CUSTDOCUMENT.

Once user cliks a button to retrive a document about the customer I need to
program in this order:

1-I want my user to creat word like document using RichText like component.
MS RichText cannot allow mw to accomplish many formation like we do use
normal Word Document. Then once user types the information about customer he
must also have to save it in predifine folder with predifine name. Example
once the user going to create new customer say ID NO 8, the application
automaticaly creates a empty word document as 0000000008.doc in application
CUSTDOCUMENT folder.

But before it going to create a empty word document it ask user that if they
wish to write someting. If yes then new form opens and they can type anything
about customer in RichText components like textbox. Than in the new form when
they click the SAVE button the document name itself automaticaly as in in
above example
and saves as 0000000008.doc in application CUSTDOCUMENT folder.

2- When user browse the customer information with the application the form
cosist of the customer data and button also poonts the where the word
document is located. Then is user clciks the OPEN button the form that
cotains RichText like components will open and shows the user about the
content of the document that belongs to current Customer that they are
viewing.

For this reason I created RichText like form but I am faild to open any
document or write it. All I need is the kind of component that allows me to
type a MS word document kind of text and if user wants to use the Font.Bold
in certain text than they have to do it. The rich text doesnot alllow to use
it in ceartain text to be bold.

So here is my question. How to achive this? Or where I can get good example
of the
application that does the things that I explained in above.

I can use excel kind of grid or html in Windows Form but why I am not be
able use it the word document in VB.NET 2003.

Does anyone out there to help me, or am I asking too much that is not
possible?

I realy appricate that you spend time to reading my post. And I thank you
for that.

Regs,
Niyazi

May 4 '06 #3

"Niyazi" <Ni****@discussions.microsoft.com> wrote in message
news:CB**********************************@microsof t.com...
Hi,

Its like a I am searching alot but still not found or satisfy what I found
it.

My question is that I had SQL server that contains some data.
I also have a application folder call CUSTDOCUMENT.

Once user cliks a button to retrive a document about the customer I need
to
program in this order:

1-I want my user to creat word like document using RichText like
component.
MS RichText cannot allow mw to accomplish many formation like we do use
normal Word Document. Then once user types the information about customer
he
must also have to save it in predifine folder with predifine name. Example
once the user going to create new customer say ID NO 8, the application
automaticaly creates a empty word document as 0000000008.doc in
application
CUSTDOCUMENT folder.

But before it going to create a empty word document it ask user that if
they
wish to write someting. If yes then new form opens and they can type
anything
about customer in RichText components like textbox. Than in the new form
when
they click the SAVE button the document name itself automaticaly as in in
above example
and saves as 0000000008.doc in application CUSTDOCUMENT folder.

2- When user browse the customer information with the application the form
cosist of the customer data and button also poonts the where the word
document is located. Then is user clciks the OPEN button the form that
cotains RichText like components will open and shows the user about the
content of the document that belongs to current Customer that they are
viewing.

For this reason I created RichText like form but I am faild to open any
document or write it. All I need is the kind of component that allows me
to
type a MS word document kind of text and if user wants to use the
Font.Bold
in certain text than they have to do it. The rich text doesnot alllow to
use
it in ceartain text to be bold.

So here is my question. How to achive this? Or where I can get good
example
of the
application that does the things that I explained in above.

I can use excel kind of grid or html in Windows Form but why I am not be
able use it the word document in VB.NET 2003.

Does anyone out there to help me, or am I asking too much that is not
possible?

I realy appricate that you spend time to reading my post. And I thank you
for that.

Regs,
Niyazi

Reference Microsoft.Officce.Interop
Install Microsoft Visual Studio 2003 Tools for Officce
May 4 '06 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: Clifford W. Racz | last post by:
Has anyone solved the issue of translating lists in Word 2003 (WordML) into xHTML? I have been trying to get the nested table code for my XSLT to work for a while now, with no way to get the...
8
by: Jaime Rios | last post by:
Hi, I created a COM AddIn for Word that performs the functions that it needs to, but I needed to add the ability for the toolbar created by the COM AddIn to remember it's last position and...
12
by: Cheval | last post by:
Has anyone had any problems with inter-office automation between MS Word and MS Access in Office 2003? I have recently installed office 2003 in a new folder and have left the older office 2000...
5
by: Jerry Hull | last post by:
I'm working with a database developed by an untrained person over several years - and on a network that has recently been upgraded with a new server installed and MS office upgraded from 2K (I...
10
by: Neil | last post by:
An article at http://news.com.com/2100-1012-991694.html?tag=fd_top states: "XML would allow easier interchange of data generated in Office documents with back-end systems or existing Web...
7
by: Dave | last post by:
Apologies for the newbie question. I have created a vb.net program for my company that is designed to work with Word Templates (about forty of them that we commonly use) that are selected by the...
6
by: jimryder | last post by:
Hi, The following snippet: (ds is a populated dataset) string sXSLT = @"C:\XML\template\template.xsl"; string sTemp = @"C:\XML\temp\temp.xml"; string sOutput = @"C:\XML\output\output.xml";...
4
by: Lyle Fairfield | last post by:
I asked this question in Microsoft.Public.Word two days ago but I have not received an answer. I believe there are Office Experts here who may be able to help. --------- "A friend has Office...
5
by: steve | last post by:
Hi All I have a VB.net 2005 App which uses MS Word 2003 to do printing and Mail Merging, by automation All works fine on my Laptop (XP Pro SP2, Word 2003) but on my desktop (XP Pro SP2, Word...
6
by: nagar | last post by:
I need to get the list of Autocorrect entries in word. Is there a way to do it without connecting to Word? Is the list saved somewhere? If I need to connect to Word, how can I detect if it's...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.