(Word2000) File Preview

C

Cameron

I need to replace some templates that were written in
WordBasic. One used FilePreview to Preview a template
before using it (like the FileNew Dialog Box). I can't
figure out how to do it. Any help would be great.

Thanks
Cameron
 
D

Doug Robbins - Word MVP

Hi Cameron,

When was the preview displayed? When the template was selected in the
File>New dialog? If so, open the template and from the File menu select
Properties and check the "Save preview picture" box.

--
Please post any further questions or followup to the newsgroups for the
benefit of others who may be interested. Unsolicited questions forwarded
directly to me will only be answered on a paid consulting basis.

Hope this helps
Doug Robbins - Word MVP
 
G

Guest

Hi Doug,

Sorry but I didn't explain myself properly. I have created
a custom form to create new document. The form contains a
listbox to view available templates and several buttons to
enable access to templates from a number of network
locations etc. Everything works fine, however I would like
to include a preview of the selected template prior to
cteating the new document. I know this function was
available in Wordbasic using DlgFilePreview. I have heard
there is no FilePreview in Word97. Is this true? and is
this the case in Word2000 aswell.

Thanks again

Cameron
 
D

Doug Robbins - Word MVP

Hi Cameron,

Most WordBasic commands can be used in VBA by prefixes them with
WordBasic.[command name], so you could try using:

WordBasic.DlgFilePreview

I assume that command needs an argument of the template path\filename. My
attempts to use the following

WordBasic.DlgFilePreview(Options.DefaultFilePath(wdUserTemplatesPath) &
"\Anzac20.dot")

however result in an "illegal function call" message (but that maybe because
I do not have the correct syntax.

Another way to achieve what you want maybe to capture the file preview image
that is displayed by the File New dialog using something like Snagit from
www.techsmith.com and then to display the respective image in an image
control on the userform when a template is selected in the list box. A
better quality/more meaningful image might be obtained by capturing the
image of a document created from each template.

--
Please post any further questions or followup to the newsgroups for the
benefit of others who may be interested. Unsolicited questions forwarded
directly to me will only be answered on a paid consulting basis.

Hope this helps
Doug Robbins - Word MVP
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top