Disable some file types when save

Stimulsoft Reports.Flex discussion
JohnnySo
Posts: 5
Joined: Fri Sep 23, 2011 7:44 am
Location: Hong Kong

Disable some file types when save

Post by JohnnySo »

Our team is evaluating Reports.Fx for Flex, we have to implement password protection when save into excel or pdf. Three questions how to implement the followings

1) Disable save menu of other file types except excel and pdf.
2) Enforce users to save with password.
3) Enforce 128 bit Encryption Key Length

Any suggestions?
Vladimir
Posts: 1462
Joined: Fri Apr 13, 2007 4:05 am
Location: Earth

Disable some file types when save

Post by Vladimir »

Hello,

1. You can disable unneeded exports using the following options:
StiOptions.viewer.exports.showExportToCsv = false;
StiOptions.viewer.exports.showExportToText = false;
StiOptions.viewer.exports.showExportToRtf = false;
StiOptions.viewer.exports.showExportToWord2007 = false;
StiOptions.viewer.exports.showExportToHtml = false;
2., 3. You can export a report using code (please see the attached example) and save it as you want. Unfortunately, currently embedded encryption is not supported.

Thank you.

Attachments
1360.Sample.zip
(49.7 KiB) Downloaded 426 times
JohnnySo
Posts: 5
Joined: Fri Sep 23, 2011 7:44 am
Location: Hong Kong

Disable some file types when save

Post by JohnnySo »

I am drafting a report on the evaluation. Thank you on the quick reply.

I had seen the samples that you attached. I had done it and pdf was generated. I used the following in order to set password to the pdf but failed.

var settings: StiPdfExportSettings = new StiPdfExportSettings();
settings.passwordInputOwner = "1";
settings.passwordInputUser = "2";

// Create a buffer for report exporting
var buffer: ByteArray = new ByteArray();
// Export report to ByteArray
service.exportPdf(report, buffer, settings);

Please help.

You quoted "Unfortunately, currently embedded encryption is not supported." Any plan to do it in the coming future?

Regards.
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Disable some file types when save

Post by HighAley »

Hello.
JohnnySo wrote:I am drafting a report on the evaluation. Thank you on the quick reply.

I had seen the samples that you attached. I had done it and pdf was generated. I used the following in order to set password to the pdf but failed.

Code: Select all

				var settings: StiPdfExportSettings = new StiPdfExportSettings();
				settings.passwordInputOwner = "1";
				settings.passwordInputUser = "2";
				
				// Create a buffer for report exporting
				var buffer: ByteArray = new ByteArray();
				// Export report to ByteArray
				service.exportPdf(report, buffer, settings);
Please help.

You quoted "Unfortunately, currently embedded encryption is not supported." Any plan to do it in the coming future?
Stimulsoft Reports.Net uses Windows system assemblies for encryption.
Unfortunately, system assemblies can't be used in Flex. Therefore encryption algorithms (RC4, MD5) must be ported to Flex engine.
It is very difficult and this functionality is not enough demand.
And this task has very low priority and we could say when it will be available.

Thank you.
JohnnySo
Posts: 5
Joined: Fri Sep 23, 2011 7:44 am
Location: Hong Kong

Disable some file types when save

Post by JohnnySo »

This morning I presented a demo with evaluation report to the management. The management would like to know if it is possible to develop the encryption feature for a price. If yes, please give a email (shown in my profile) to me on how many and take how long.

We have to provide a function to generate sensitive data that users can save for further usage. The data must be encrypted with password.
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Disable some file types when save

Post by HighAley »

Hello.

We don't have solution development service. But we can develop some features for our customers by request. It depends of what encryption do you need and if it is possible to do.
Please, specify what encryption and where do you need in details.

Thank you.
JohnnySo
Posts: 5
Joined: Fri Sep 23, 2011 7:44 am
Location: Hong Kong

Disable some file types when save

Post by JohnnySo »

Thanks on the reply. I will comply the specification in a few days for you. Do I post the specification here or email to you?
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Disable some file types when save

Post by HighAley »

Hello.
JohnnySo wrote:Thanks on the reply. I will comply the specification in a few days for you. Do I post the specification here or email to you?
Please, send the specification to support@stimulsoft.com.

Waiting for your reply.

Thank you.
JohnnySo
Posts: 5
Joined: Fri Sep 23, 2011 7:44 am
Location: Hong Kong

Disable some file types when save

Post by JohnnySo »

Hi,

The specification "ReportFx for Flex Encryption Support.docx" mailed to support@stimulsoft.com .

Please check. Nice to hear from you for more details. Thanks.
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Disable some file types when save

Post by HighAley »

Hello.
JohnnySo wrote:The specification "ReportFx for Flex Encryption Support.docx" mailed to support@stimulsoft.com .

Please check. Nice to hear from you for more details. Thanks.
We received your mail and we are preparing answer for you.

Thank you.
Locked