473,396 Members | 1,843 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,396 software developers and data experts.

From VB.NET to Word 2003

Hi,

With my VB.NET 2003 application I want to generate reports in Word 2003.
I should be able to:
- use eventually some template (with the header of the company etc) and ad
my info to the document
- be able to add an image
- be able to add and fill tables

But all of this should have a flexibility for the users to add the text etc
themselves, without the word-document losing all his formattings etc.

What are the possibilites? I read something about WordXml? Would there be a
way to 'host' the Word-document in my application?
Is there some way to add some kind of parameters/fields to a template that
can be filled easily with an VB.NET-application?

Any helps, hints, directions, links would be great.

Thanks a lot in advance,

Pieter
Mar 31 '06 #1
6 1529
Hi Pieter,

It is always nice to see a new name in this newsgroup.

I never did what you ask for in VB net. But of course is Interop for it.

However some years ago somebody was struggling with something like this as
well.

I gave him the advice to try HTML, because that is quiet easy to handle in
VBNet as well as it is in modern Office versions. He wrote back if I thought
that his company was not a profesional organisation and that HTML was for
amateurs. That it is not it is the predecessor of WordXML and the successor
of SGML

Only if you don't succeed of course by interop or WordXML

Some links if you don't have them already for 2003

Office
http://support.microsoft.com/default...b;EN-US;311452

http://msdn.microsoft.com/office/

Pia Download
http://www.microsoft.com/downloads/d...displaylang=en

HOW TO: Call a Visual Basic .NET Class Library from Visual Basic for
Applications in Microsoft Office
http://support.microsoft.com/?kbid=317535

Cor
Mar 31 '06 #2
LOL. I guess it all depends on the situation.

--
Get a powerful web, database, application, and email hosting with KJM
Solutions
http://www.kjmsolutions.com

"Cor Ligthert [MVP]" <no************@planet.nl> wrote in message
news:uh**************@TK2MSFTNGP12.phx.gbl...
Hi Pieter,

It is always nice to see a new name in this newsgroup.

I never did what you ask for in VB net. But of course is Interop for it.

However some years ago somebody was struggling with something like this as
well.

I gave him the advice to try HTML, because that is quiet easy to handle in
VBNet as well as it is in modern Office versions. He wrote back if I
thought that his company was not a profesional organisation and that HTML
was for amateurs. That it is not it is the predecessor of WordXML and the
successor of SGML

Only if you don't succeed of course by interop or WordXML

Some links if you don't have them already for 2003

Office
http://support.microsoft.com/default...b;EN-US;311452

http://msdn.microsoft.com/office/

Pia Download
http://www.microsoft.com/downloads/d...displaylang=en

HOW TO: Call a Visual Basic .NET Class Library from Visual Basic for
Applications in Microsoft Office
http://support.microsoft.com/?kbid=317535

Cor

Apr 2 '06 #3
Visual Studio 2005 and the .Net framework allows you to create "reports"
(using something very closed to the Sql Reporting services, but without the
server features).
The generated reports can be exported into several formats, including the
PDF format, or excel or HTML (don't remember if Word is included too).

This incredibly increases the developpement of reports generation.

HTH,
Steve

"Pieter Coucke" <pi**********@hotmail.com> a écrit dans le message de news:
Ob**************@TK2MSFTNGP11.phx.gbl...
Hi,

With my VB.NET 2003 application I want to generate reports in Word 2003.
I should be able to:
- use eventually some template (with the header of the company etc) and ad
my info to the document
- be able to add an image
- be able to add and fill tables

But all of this should have a flexibility for the users to add the text
etc themselves, without the word-document losing all his formattings etc.

What are the possibilites? I read something about WordXml? Would there be
a way to 'host' the Word-document in my application?
Is there some way to add some kind of parameters/fields to a template that
can be filled easily with an VB.NET-application?

Any helps, hints, directions, links would be great.

Thanks a lot in advance,

Pieter

Apr 5 '06 #4
Thanks Cor, there are some really usefull links in it!
Apr 6 '06 #5
Do you mean the Crystal Reports? Or via the Reportviewer (actually Reporting
Services).

Crystal Reports can export to Word, but not in a 'nice' format: all the text
is placed in Text Boxes: So if you add text in one Text Box, it will come in
front of the others instead of moving everything nicely.
Apr 6 '06 #6
No crystal reports required (good news).

Right click on your project, select Add new item, you will find a "Report"
template (rldc extention).

This reports is included in the Framework and is very close to what
reporting services can do (the report format is the same).
Reporting services added value is the server features (reports
subscriptions, reports web services, etc...). But reports rendering can be
used with VS 2005 and .Net 2.0 without reporting services.

Take a look at our new beta product (free) :
http://mentor.airsoftconsulting.com/

There is a section of the application that can generate reports locally.

Steve
"Pieter" <pi**********@hotmail.com> a écrit dans le message de news:
eh**************@TK2MSFTNGP04.phx.gbl...
Do you mean the Crystal Reports? Or via the Reportviewer (actually
Reporting Services).

Crystal Reports can export to Word, but not in a 'nice' format: all the
text is placed in Text Boxes: So if you add text in one Text Box, it will
come in front of the others instead of moving everything nicely.

Apr 6 '06 #7

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

Similar topics

4
by: Daniel Cloutier | last post by:
Hi, is it possible to edit or write Word-files out of a Python-Program? thx in advance daniel
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...
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...
6
by: Chris | last post by:
Hi, - How can I open an existing word document from a C#-client and manipulate that document from within the C#-client ? - How can I open an excel document that is embedded in a word-document...
3
by: Yohancef Chin | last post by:
Hi, Being fairly new to .NET I am looking for a way to call MS Word from an event on a webform, and after the user is finished save that created document to an SQL Server database. Has anyone...
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";...
3
by: Niyazi | last post by:
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...
2
by: Edgardo | last post by:
I hope I'm in the correct forum for this, as the problem is hard to categorize. I have a VS 2005 asp.net application that invokes Word 2003 to opean and read a word document. the aplication have...
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...
22
by: liya.tansky | last post by:
Hello, I'm developing an intranet (win XP, .NET 2, Visual Studio 2005, Microsoft.Office.Interop.Word.dll in references) and needed to implement find-replace in word doc before sending letter and...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.