Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

CR and Disabling Printing

Status
Not open for further replies.

mans

Programmer
Mar 18, 2000
136
AU
Hello,

I am using Visual Basic 6 with CR 4.6.1.0. I am producing a demo version of my software and I would like the users to have read only access to my crystal reports. Meaning I would not want them to be able to print or save the crystal reports into any other format. It would be ideal if I could disable the bottom toolbar on all of the reports. Can somebody please offer some advice in this area.

Out of interest, is it at all possible to prevent the users from copying the screen ("Print Screen") on these reports??

Thank You [sig][/sig]
 
It sounds like you are talking about protecting the output of the report and not the RPT file itself. You realize that the RPT can't be protected because if they can read it they can copy it and open it with any current version of Crystal Reports.

Since I have never used the VB version maybe you can enlighten me. What is on the "Bottom Toolbar" that you are referring to, and when does it appear (runtime or design time)?

In my version of the Active X I have the following available which eliminate the ability to print or export:

rptMyReport.WindowShowPrintBtn = False
rptMyReport.WindowShowExportBtn = False

I don't know of any way to prevent them from taking a screen shot. [sig]<p>Ken Hamady<br><a href=mailto:ken@kenhamady.com>ken@kenhamady.com</a><br><a href= Reports Training by Ken Hamady</a><br>[/sig]
 
When I put in the statement below it says &quot;Object does not support this property or method&quot;. Do I need to install a particular Active X or OCX file to allow the statement below to work.
[sig][/sig]
 
Are you using the OCX to launch the reports as opposed to the API?

You did use your report name as the object inplace of rptMyReport?

I am using the OCX that came with version 8, I didn't think that it was different but it is possible that this property isn't available in your version.

Maybe someone else who knows CR 4.6 can jump in here.
[sig]<p>Ken Hamady<br><a href=mailto:ken@kenhamady.com>ken@kenhamady.com</a><br><a href= Reports Training by Ken Hamady</a><br>[/sig]
 
The solution to total security (not having them pull your reports apart) is to use the RDC with Version 8.0 Developers. The reports, when designed (or imported into) the Visual Basic IDE will compile into the EXE. Now they can't modify or view them. You found out you can't control the printing of the screen, but if you are in a VB environment, you can prevent key combinations from being used, or intercept them and have other actions take place. [sig][/sig]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top