Welcome to the SRP Forum! Please refer to the SRP Forum FAQ post if you have any questions regarding how the forum works.
SRP.PREVIEW.1
Hi,
We discovered an undocumentend control.
SRP Preview
We found out that we can view Word and Excel files with it.
Very powerful!
Is there also some secret documentation on this control?
Sometimes a Word document does not open on top (scrolled top)
Is it a wrapper?
Thank you.
Regards Ed Keeman
We discovered an undocumentend control.
SRP Preview
We found out that we can view Word and Excel files with it.
Very powerful!
Is there also some secret documentation on this control?
Sometimes a Word document does not open on top (scrolled top)
Is it a wrapper?
Thank you.
Regards Ed Keeman
Comments
By way of documentation, there isn't much to say. There are some properties for setting a caption that appears when the preview does not support a given file type. These properties are OLE.Background, OLE.Caption, OLE.CaptionColor, and OLE.Font.
To show a file, call the OLE.Preview(Filename) method. To clear the preview, call the OLE.Clear() method.
That's all there is. Use at you your own discretion. If you are in the position of managing expectations with your users, this could be of use. If, however, you ship this to a wide variety of users, you'll be on support calls with clients who feel it's your job to make the preview look right. That has been our experience.
We will give it try..