473,412 Members | 2,092 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,412 software developers and data experts.

ASP/Word Merge

JV
I've done some research on how to do a MS Word merge with data I read
in an ASP application (using a SQL Server database).

I understand the concept since I've done it in a couple other
programming languages. However, I need to pointers/help how to do this
in ASP.

Thanks very much for your help!

JV

Jul 22 '05 #1
6 2727
Hi JV,

ASP is really not the right technology to use for automating mail merges in
Word. For one, server-side automation of Office objects (i.e. Word) is
strongly ill-advised. Also, ASP is meant for immediate request and response
type of interaction between a user and a server, not long job processing.
May I ask why you need to do this in ASP as opposed to just running a vbs
script or something along those lines to do this?

Ray at work

"JV" <jh********@hotmail.com> wrote in message
news:11**********************@g49g2000cwa.googlegr oups.com...
I've done some research on how to do a MS Word merge with data I read
in an ASP application (using a SQL Server database).

I understand the concept since I've done it in a couple other
programming languages. However, I need to pointers/help how to do this
in ASP.

Thanks very much for your help!

JV

Jul 22 '05 #2
JV
Ray,

A VBS script would be fine too (it's just an ASP environment ...). What
do I need to do to set this up in VBS script? Where would I call this
script? Perhaps you have an example .... ?

JV

Jul 22 '05 #3
I do not have an example or anything. Most of this would involve automation
of Word and being familiar with the Word object model. I suggest inquiring
in a Word programming group (VBA) and starting there. If you can get it
working in VBA in Word, it should be translatable to VBS. For help with
that, I'd then go to m.p.scripting.vbscript.

Ray at work

"JV" <jh********@hotmail.com> wrote in message
news:11**********************@o13g2000cwo.googlegr oups.com...
Ray,

A VBS script would be fine too (it's just an ASP environment ...). What
do I need to do to set this up in VBS script? Where would I call this
script? Perhaps you have an example .... ?

JV

Jul 22 '05 #4
JV
Fair enough.

I assume this option (VBs) requires MS Word to be installed on the
server? I'd like to create a document (by means of the merge) and let
the user download it to his/her client.

JV

Jul 22 '05 #5
JV
Perhaps I should ask a somewhat different question instead. Is it
possible to have merge data (from SQL Server) via special placeholders
in a Word document ? I noticed that most "Word merge VBs examples" all
create new documents by inserting things like paragrahs in conjunction
to actual data. I'd like to define my template first and then just
replace its placeholders with actual data.

Jul 22 '05 #6
Yes, it's all possible, but you need to start small and do it one step at a
time.

1. How do you connect to a SQL Server?
2. How do you get data from it and put the data into a string variable?
3. How do you open up a Word doc programatically?
4. How do you insert string data from a string variable into a Word doc
programatically?

One step at a time. Ask appropriate questions in appropriate groups.

Ray at work

"JV" <jh********@hotmail.com> wrote in message
news:11**********************@o13g2000cwo.googlegr oups.com...
Perhaps I should ask a somewhat different question instead. Is it
possible to have merge data (from SQL Server) via special placeholders
in a Word document ? I noticed that most "Word merge VBs examples" all
create new documents by inserting things like paragrahs in conjunction
to actual data. I'd like to define my template first and then just
replace its placeholders with actual data.

Jul 22 '05 #7

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

Similar topics

3
by: Andy | last post by:
I am trying to do the following from an ASP.NET Web Application (C#). User fills out a form. The program takes those answers and merges them with a WORD document. I have tried the few examples...
0
by: Julia Baresch | last post by:
Everyone, I posted the message below back in February and didn't get any information. I also wasn't able to find any documentation in MS Help, web site, or other groups. I'm posting now with...
2
by: Aaron | last post by:
hello, i am perfoming a mail merge with the following code. Public Function MergeIt() Dim objWord As Object Set objWord = GetObject("C:\MyMerge.doc", "Word.Document") ' Make Word visible....
8
by: Darryl Kerkeslager | last post by:
I hope that although this is 25% Access and 75% Word, that someone will know ... The whole problem here arises because 1) Microsoft acknowledges an 'issue' wherein TextInput type FormFields are...
2
by: Colin Halliday | last post by:
I have a Word 2003 mail merge main document (form letter) that is linked to another Word document data source for the mail merge. If I open this doc using the Word GUI, it first asks me to...
6
by: Simon | last post by:
on my frmCustomer form i would like a button that open up words and runs a mail merger only with the data on on that form ( as on the mail merger i just want the customer address for when i write a...
8
by: Ron B | last post by:
Help!!! What am I doing wrong? I am working with Office 2003 and am trying to create a command button on an Access form that will create a mail merge in Word from an Access table. I want to...
8
by: babyangel43 | last post by:
Hello, I have a query set up in Access. I run it monthly, changing "date of test". I would like this query to be merged with a Word document so that the cover letter is created in Word, the fields...
7
by: giladp1 | last post by:
I found Albert Kallal's great "Super easy Word Merge" code in his site at: http://www.members.shaw.ca/AlbertKallal/msaccess/msaccess.html Thanks Albert so much for sharing this. I am looking...
1
by: Esther Lane | last post by:
Hello! First off, many many thanks to Albert who wrote the Mail Merge code for MS Access I am using. It has been working beautifully for a few years. However, my client just (without notice!)...
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
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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
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...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

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.