Report Preview
I wish to use the previewer as it comes with ReportBuilder, except that I'd
like to make the close button invisible and disabled. I have the preview on
a tabsheet control and do not wish to have the preview close unless the user
goes to another tabsheet.
I have not yet figured out how to accomplish this. Can you give me a hand?
Thanks!
Tom.
like to make the close button invisible and disabled. I have the preview on
a tabsheet control and do not wish to have the preview close unless the user
goes to another tabsheet.
I have not yet figured out how to accomplish this. Can you give me a hand?
Thanks!
Tom.
This discussion has been closed.
Comments
sounds. Copy the TppPreview class and save it as a TmyPreview. Search the
code where FBtnCancel is created, and set it to visible = False. Then you'll
want to register this class so that RB will use it instead of the default.
initialization
TppPreviewPlugin.UnRegister(TppPreview);
TppPreviewPlugIn.Register(TppMyPreview);
finalization
TppPreviewPlugIn.UnRegister(TppMyPreview);
TppPreviewPlugIn.Register(TppPreview);
Cheers,
Jim Bennett
Digital Metaphors
http://www.digital-metaphors.com
info@digital-metaphors.com
I did exactly as you described. I get an access violation when the preview
runs. Stepping through the error in the IDE then shows the preview form
without the cancel/close button but no report preview. It appears that the
error occurs in the ReportBuilder code ( which I haven't compiled with the
debug info turned on ). Any ideas?
Thanks!
Tom.
Cheers,
Jim Bennett
Digital Metaphors
http://www.digital-metaphors.com
info@digital-metaphors.com
Tom.
Here is a simple example, which I created in RB 6.03.
http://www.digital-metaphors.com/tips/ReplacePreviewForm.zip
Cheers,
Jim Bennett
Digital Metaphors
http://www.digital-metaphors.com
info@digital-metaphors.com