Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Visual Documents 2.0 categories in report crashs program
Message
From
03/01/2003 07:06:45
 
 
To
02/01/2003 19:23:09
Michael Gass
Instructional Software, Inc.
Kirkland, Washington, United States
General information
Forum:
Visual FoxPro
Category:
CodeMine
Miscellaneous
Thread ID:
00736473
Message ID:
00737635
Views:
22
Hi Michael:

The main issue initially is that I have found that copying an entire RTF file into a memo field and then creating the RTF stream from it using LoadTemplate causes problems. An entire RTF file is happier being loaded using LoadTemplateFile. So, by writing back to a temporary file from a memo and then loading it via LoadTempateFile usually works. Also, just loading the template directly from the RTF file itself is clearly the cleanest option and the one I generally use. However, sometimes, you need to load RTF data from memos.
>Error found in paragraph 1 at tab "<<TR>>"
>Not a valid RTF file - no header found
This appears to suggest that the RTF data in the memo file that you copied out to a temp file was incomplete or corrupted in the first place. This doesn't surprise me on the basis of the technique you were using to get the RTF data into the memo file in the first place. If you can copy out the data from the memo to a file with an RTF extension (like I showed you), you should be able to double click on the file and have it load in Word, perfectly. If you cannot, then the RTF in you memo is bad.

I have looked at your code and frankly, it appears to be OK. However, I haven't seen the RTF template and so, I cannot be sure that everything is correct. I would suspect that you have problems in your template files. I create some truly complex documents without any problems so, the template is my "suspect" at this stage.

If you can isolate the data, template and processing code into a zip file that produces the problem, send it over to me and I will take a look to see if I can spot anything with the whole "show" in front of me <s>.

Best
-=Gary
Previous
Reply
Map
View

Click here to load this message in the networking platform