Reply
 
Thread Tools Display Modes
  #1   Report Post  
gordheck gordheck is offline
Junior Member
 
Posts: 1
Post Documents from Templates

I have an application which creates Word documents from a access table using Visual Basic commands.
I open a Word Document Template. Perform calls to move data into bookmarks and save the document (with a unique name) as a .DOC type

My problem is that when I attach the .DOC to an EMail and the receiver try's to open the .DOC it seems to of carried over the template style and is asking to open an SQL command.

How do I create the Word Document without any reference to a template.
  #2   Report Post  
Posted to microsoft.public.word.mailmerge.fields
Doug Robbins - Word MVP Doug Robbins - Word MVP is offline
external usenet poster
 
Posts: 8,832
Default Documents from Templates

Was the document at some time a mailmerge main document?

Of course, you should not be opening the template. You should select New
from the File Menu and the select the template as the basis for the document
that you want to create. Or using code, you would use

Documents.Add("TemplatePath\Name")

not

Documents.Open("TemplatePath\Name")

--
Hope this helps.

Please reply to the newsgroup unless you wish to avail yourself of my
services on a paid consulting basis.

Doug Robbins - Word MVP

"gordheck" wrote in message
...

I have an application which creates Word documents from a access table
using Visual Basic commands.
I open a Word Document Template. Perform calls to move data into
bookmarks and save the document (with a unique name) as a .DOC type

My problem is that when I attach the .DOC to an EMail and the receiver
try's to open the .DOC it seems to of carried over the template style
and is asking to open an SQL command.

How do I create the Word Document without any reference to a template.




--
gordheck



Reply
Thread Tools
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Hiding Documents from Templates Martin Folley Microsoft Word Help 6 September 14th 07 03:22 PM
Templates not opening as templates as word documents Alpha Man Microsoft Word Help 2 September 26th 06 05:36 PM
Word documents-templates Dianna Microsoft Word Help 2 November 11th 05 04:18 PM
Templates saved as Documents Kularian Microsoft Word Help 1 July 14th 05 11:05 PM
Opening templates as documents David hendel Microsoft Word Help 1 January 10th 05 11:18 AM


All times are GMT +1. The time now is 10:25 AM.

Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 Microsoft Office Word Forum - WordBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Word"