Skip to main content
April 16, 2008
Question

$styleprepfile.htm

  • April 16, 2008
  • 14 replies
  • 1449 views
When trying to generate printed documentation I get a message that the file $styleprepfile.htm is damaged and the documentation file is more or less empty. (see the message text below) The file $styleprepfile.htm is disabled by Word.

RoboHelp displays this for the two first files in my project:
Warning: The Word Document became corrupt when attempting to append a malformed topic: <topic name>

I have tried enabling the file again, but not change. Then I reinstalled Word from the cd, and I thought at first that helped, but it was just a momentary thing. I have tried searching for the file, but only place I have found it mentioned at all was in an issue i the RoboHelp forum!

Anybody know anything about this file? Is it a Word file, RoboHelp file, shared file or what? Even better, does anybody know what I can do to fix this? As things stand now I cannot produce printed documentation at all!

Error message text
If you attempt to open a file marked as damaged or disabled by an Office application, you may encounter this error. You will continue to receive this error each time you attempt to open the file even if the file was recovered or repaired.
The file is in the Disabled Items list because it has caused the application to fault or shut down more than once in previous attempts to open the file. This error message helps you avoid potential problems that may occur if the file is opened and causes other currently open files to suspend.
If the file was properly recovered, replaced, or deleted, you can remove the file from the list of disabled files (re-enable the file) by selecting Help, About Microsoft Office <ApplicationName>, and clicking Disabled Items....
Re-enabling a file does not guarantee the application can open it. The file must be recovered from either a backup or undamaged recovered file.
This topic has been closed for replies.

14 replies

May 28, 2008
Well, I'm sort of confused myself. That problem SEEMS to be gone. But as I mentioned, several other things that I have never experienced before turned up in the aftermath. I don't know if there is any connection, tho'. So far I have managed to find solutions for those other problems myself (or by reading your site ;-) )
Peter Grainge
Community Expert
Community Expert
May 27, 2008
Colour me confused. You say you have managed to find a way to live with this, that sounds like a workaround. Then you say "Now I don't get that message anymore" which sounds like you have eliminated the problem. Which is it?

The file should contain the formatting information and is meant to be deleted.

Use the menu (bottom right) to mark the Best Answer or Highlight particularly useful replies. Found the answer elsewhere? Share it here.
May 26, 2008
After a lot of trial and error I seem to have managed to find a way to live with this, but not necessarily solve it.
When I got the about the $StylePrepFile I was given three alternatives. Choosing Recover didn't help at all, but when I tried Open, things seem to work. Now I don't get that message anymore! (I've encountered some other problems with Printed documentation after solving that part, but I think I can manage to find my way around them.)

By the way, the $StylePrepFile.htm file is created during generation of the printed documentation, in the same folder as you specify for the .doc file. It is normally deleted when the process i finished, but I managed to copy it before it was deleted. I'm definitely not an html expert, but it looks like it contains som formatting information, fonts etc.
Inspiring
April 29, 2008
In the dim past, I remember seeing this file when generatng print doc.

It is a temp file that RH 5 built to hold modified output from the html file before stuffing it into a new Word doc.

In a very large output, you can see it in the print output file in the SSL folder in Windows Explorer. While RH is generating it, you can watch it grow, and when it bombs, I think the temp file stays there until you cancel the process in RH.

So I would try again, even with a small output, and when you get the error, don't touch anything in RH until you go to Windows Explorer and look for the temp file. I think you can even open it with Notepad and get a hint about where to look for the problem.

Harvey
Peter Grainge
Community Expert
Community Expert
April 29, 2008
Via my site send me a screenshot of the disabled files in Word and the sample project you created.

Have you at any time installed a trial of a later version of RH?

Are you able to install RH on another PC just to try it out there? Use a project that has given you trouble.

Use the menu (bottom right) to mark the Best Answer or Highlight particularly useful replies. Found the answer elsewhere? Share it here.
April 29, 2008
My IT guy doesn't understand this either. My Word set up has been unchanged for a couple years, and I never had this problem before.
April 29, 2008
Yes, I uninsatalled and reinstalled RH after reinstalling Word.

I also thought it was strange that I could find no references to that file other than here! I have not been able to find it anywhere expect in Disabled files in Word. I see now that there are several occurences of it there, so it seems like it is created when I try to generate printed doc. in RH.
Peter Grainge
Community Expert
Community Expert
April 29, 2008
A thing that bothers me about this problem is that usually a Google search on a file that is giving problems returns lots of hits, even if none of them are solutions. A search on $styleprepfile.htm only points to this thread.

Have you asked your IT people if there is anything unusual about the way they set up Word and the templates?

Can you track where that file sits on your PC?

Use the menu (bottom right) to mark the Best Answer or Highlight particularly useful replies. Found the answer elsewhere? Share it here.
Peter Grainge
Community Expert
Community Expert
April 29, 2008
Did you uninstall and reinstall RH after you had reinstalled Word?

Use the menu (bottom right) to mark the Best Answer or Highlight particularly useful replies. Found the answer elsewhere? Share it here.
April 29, 2008
Thanks for you tips Harvey.
I have now read Peter's topic on malformed topics,
reinstalled RH including 5.02 update,
copied project to hard drive,
generated print doc to hard drive
and checked that security level is medium

and still have problems

I have also created a completely new project om my hard drive. It has only one topic containing only the default text generated by RoboHelp. I have made no changes to .css file or template. When I try to generate to my hard drive I get:
Preparing to build chapters...
Building 'First Topic'...
Warning: Failed to save the Word Document after appending a malformed topics:'First_Topic.htm'

I'm really at a loss now so any other ideas will be greatly appreciated!
Barb