Unable to print the .dot file 2 times

S

Srini

All,

I have a .dot file template with 13 userforms. the user can navigate
from each form and key in the details. All the details in all the forms
are capturted and kept in the template.

My dot file has option for Print DRAFT (This is from File Menu). DRAFT
print is the same as the normal print, only difference is that there
will be a mark "DRAFT" on first page.

Once the user finishes all the forms, It brings out the template with
filled in values.
Here is the problem. I am able to use "Print Draft" once - it is
printing the document as expected, if i use "Print Draft" second time
on the same document it is throwing me an error

"Microsoft word has encountered a problem and needs to close
we are sorry for the inconvenience"

if i open someother dot file, i am able to use option "Print Draft" any
number of times.

this is drving me crazy, Please help me.

Thanks
Srini
 
C

Cindy M -WordMVP-

Hi Srini,

This is almost impossible to trouble-shoot, based on the information you
give us.

1. Version of Word

2. Are you actually opening and working in the template file? Not
creating a new document from it? That's not how templates should be
used...

3. You need to narrow down which line of code is causing the breakdown

4. It's possible that the internal file structures of the
document/template are damaged ("corrupt document") and that something the
routine is doing is hitting that damaged area in such a way the Word can
no longer work with the file. you could try copying everything but the
last paragraph mark to a new template.
I have a .dot file template with 13 userforms. the user can navigate
from each form and key in the details. All the details in all the forms
are capturted and kept in the template.

My dot file has option for Print DRAFT (This is from File Menu). DRAFT
print is the same as the normal print, only difference is that there
will be a mark "DRAFT" on first page.

Once the user finishes all the forms, It brings out the template with
filled in values.
Here is the problem. I am able to use "Print Draft" once - it is
printing the document as expected, if i use "Print Draft" second time
on the same document it is throwing me an error

"Microsoft word has encountered a problem and needs to close
we are sorry for the inconvenience"

if i open someother dot file, i am able to use option "Print Draft" any
number of times.

Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Jun 8 2004)
http://www.word.mvps.org

This reply is posted in the Newsgroup; please post any follow question or
reply in the newsgroup and not by e-mail :)
 
S

Srini

Cindy,

Thanks for your reply.
1. Word 2002
2. I am working on a standard template. I am not creating a new
document from it.
3. I dont think this is the problem with the code, the same standard
template is being used for all letters (.dot file). This is working for
all others except this letter.
4. Earlier it was not able to print (Draft) even a single copy, if the
user do not select any of the checkboxes in 13 userforms, then i did
trail and error method.
what is happening in the begining is - if user checks any checkbox, the
content of that checkbox will be added in the letter (there are around
80 checkboxes which spreaded across 13 userforms)
What i did - I have analysed for what are all checkboxes the problem is
arising, I found out 3 checkboxes and i modified the code such that
Though user checks the checkbox, Deleted the content related to that
checkbox from the document and addded the same content

previoulsy the content is added only if user selects the checkbox but
now iam adding, deleting and adding it again.

To my surprise it started working but this time iam not able to print
twice.

Its look like a puzzle but it totally confused me. Any ideas

Thanks
Srini
 
C

Cindy M -WordMVP-

Hi Srini,
Thanks for your reply.
1. Word 2002
2. I am working on a standard template. I am not creating a new
document from it.
3. I dont think this is the problem with the code, the same standard
template is being used for all letters (.dot file). This is working for
all others except this letter.
4. Earlier it was not able to print (Draft) even a single copy, if the
user do not select any of the checkboxes in 13 userforms, then i did
trail and error method.
what is happening in the begining is - if user checks any checkbox, the
content of that checkbox will be added in the letter (there are around
80 checkboxes which spreaded across 13 userforms)
What i did - I have analysed for what are all checkboxes the problem is
arising, I found out 3 checkboxes and i modified the code such that
Though user checks the checkbox, Deleted the content related to that
checkbox from the document and addded the same content

previoulsy the content is added only if user selects the checkbox but
now iam adding, deleting and adding it again.

To my surprise it started working but this time iam not able to print
twice.

Its look like a puzzle but it totally confused me. Any ideas
I'm sorry, not really, no. My best guess is that the container is
damaged. (That's one reason we never work directly in a template, but
always create a document from it. Less chance of the template file
getting messed up.)

you could try exporting all the code parts out of the document (creates
text files). Then create a new file and import the code parts. Copy any
boilerplate text across - but make sure to NOT include the last paragraph
mark. AutoText, styles and toolbar can be copied over using the
Organizer.

Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Jun 8 2004)
http://www.word.mvps.org

This reply is posted in the Newsgroup; please post any follow question or
reply in the newsgroup and not by e-mail :)
 

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