|
|
Restrain Print and Export functions ?
Posted: 26 Nov 07 5:16 AM
|
One customer wants to provide some information to remote saleslogix users by viewing reports, but he would like to forbid printing and exporting those reports. Other reports for the same persons can be printed and exported. Saleslogis version is 6.2
I thought of 2 ways : - modify something in the Slx environment ( but I don't see how ) - making the report itself unprintable ( but I have never heard of such possibility )
Does anyone knows about such a possibility ? Thank you.
Janick |
|
|
|
Re: Restrain Print and Export functions ?
Posted: 26 Nov 07 2:51 PM
|
The export and print features in the crystal viewer are controlled by locally registered dlls.
Here is a list of all the dlls that are used by the crystal viewer. The ones beginning with 'u2' control the different 'export' functiionalities.
C:\Winnt\system32\sscsdk80.dll c:\winnt\crystal\craxdrt.dll c:\winnt\crystal\crtslv.dll c:\winnt\crystal\crviewer.dll c:\winnt\crystal\crxf_pdf.dll c:\winnt\crystal\crxf_rtf.dll c:\winnt\crystal\crxlat32.dll c:\winnt\crystal\exportmodeller.dll c:\winnt\crystal\p2soledb.dll c:\winnt\crystal\u2dapp.dll c:\winnt\crystal\u2ddisk.dll c:\winnt\crystal\u2dmapi.dll c:\winnt\crystal\u2dnotes.dll c:\winnt\crystal\u2dpost.dll c:\winnt\crystal\u2dvim.dll c:\winnt\crystal\u2fcr.dll c:\winnt\crystal\u2fdif.dll c:\winnt\crystal\u2fhtml.dll c:\winnt\crystal\u2fodbc.dll c:\winnt\crystal\u2frdef.dll c:\winnt\crystal\u2frec.dll c:\winnt\crystal\u2fsepv.dll c:\winnt\crystal\u2ftext.dll c:\winnt\crystal\u2fwks.dll c:\winnt\crystal\u2fwordw.dll c:\winnt\crystal\u2fxls.dll c:\winnt\crystal\u2fxml.dll c:\winnt\crystal\u2l2000.dll c:\winnt\crystal\u2lcom.dll c:\winnt\crystal\u2ldtdif.dll c:\winnt\crystal\u2ldts.dll c:\winnt\crystal\u2lexch.dll c:\winnt\crystal\u2lfinra.dll c:\winnt\crystal\u2lsamp1.dll c:\winnt\crystal\u25dts.dll c:\winnt\crystal\u252000.dll
I have never been faced with what you have on your plate. Someone else may have a better suggestion...
|
|
|
|
Re: Restrain Print and Export functions ?
Posted: 28 Nov 07 11:30 PM
|
David's suggestion isn't too bad, removing the export function DLLs should get rid of those export options. However, once you upgrade to v7 this will be an easy task to simply get rid of the export functionality from teh report viewer (I've done that for a client before in v7 and it worked great) |
|
|
|
Re: Restrain Print and Export functions ?
Posted: 01 Dec 07 6:01 AM
|
Thank you David and Ryan.
For the time being this solution will be perfect. Here in France, V7 is still not released by Sage ! The good side is that we naver have to wait for the first service packs, as we get new versions so late. |
|
|
|
Re: Restrain Print and Export functions ?
Posted: 28 Jan 10 10:21 PM
|
Ryan,
Would you mind sharing where Export within the SalesLogix Crystal Report Viewer can be turned off. I have a customer that wants users to only be able to print reports.
Thank you. |
|
|
|
Re: Restrain Print and Export functions ?
Posted: 28 Jan 10 11:08 PM
|
I haven't tried this on my own, but this is what I have found out:
The slxwebrpt.aspx page has a CrystalReportViewer control on it, which is where the Report is displayed.
The Markup is as follows:
<CR:CrystalReportViewer ID="CrystalReportViewer1" runat="server" AutoDataBind="true" EnableDatabaseLogonPrompt="False" CssFilename="/crystalreportviewers115/css/default.css" GroupTreeImagesFolderUrl="/crystalreportviewers115/images/tree/" ToolbarImagesFolderUrl="/crystalreportviewers115/images/toolbar/" />
I opened the CrystalViewer using a Reflection tool, and found out that it has a Property called "HasExportButton". So, in theory it appears that you could modify the Code shown above and add the HasExportButton with a value of False:
<CR:CrystalReportViewer ID="CrystalReportViewer1" runat="server" AutoDataBind="true" EnableDatabaseLogonPrompt="False" CssFilename="/crystalreportviewers115/css/default.css" GroupTreeImagesFolderUrl="/crystalreportviewers115/images/tree/" ToolbarImagesFolderUrl="/crystalreportviewers115/images/toolbar/" HasExportButton="false" />
|
|
|
|
Re: Restrain Print and Export functions ?
Posted: 29 Jan 10 6:29 AM
|
Thanks Raul. After more checking, it appears the option to restrict the Export button is limited to the web. The LAN client would require the removal of the dll's as described above. |
|
|
|
Re: Restrain Print and Export functions ?
Posted: 30 Jan 10 10:54 AM
|
Originally posted by Daryl Probetts
Ryan,
Would you mind sharing where Export within the SalesLogix Crystal Report Viewer can be turned off. I have a customer that wants users to only be able to print reports.
Thank you. |
|
For the LAN client (it's been a very long time since I've looked at this so hopefully I am remembering it right), you can open the "System:SLX Crystal Report Viewer" form plugin. This form hosts the Crystal Report Viewer ActiveX control. Select the viewer control and in the property editor locate the "EnableExportButton" property and set it to False. |
|
|
|