Your question is somewhat unclear, John. "Better way to preview the content" suggests that "common way to preview the content" exists.
Could you please elaborate on what content and what common way of previewing you mean?
If it is an actual Microsoft Word RTF document, you can create a temporary cursor with a general field, put the document in the general field using APPEND GENERAL, and on your report use a oleboundcontrol to show the document.
Mike Gagnon
If you want to get the best response to a question, please check out FAQ184-2483 first.
Another way to preview an RTF or Word doc is to add an ActiveX control to a form, select 'Create from file' and check the 'Link' option.
Find the required file and then 'Save as Class' the ActiveX control with the name of 'oleDocument' to a class library.
In some suitable event/method on your form put :
WITH THISFORM
[tab].AddObject([oleDocument],[oleDocument])
[tab].oleDocument.DoVerb()
[tab].RemoveObject([oleDocument])
ENDW
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.