Page 1 of 1

How to show Export Dialog in Viewer?

Posted: Fri Jul 29, 2011 8:49 am
by vitaliy.urazov
Hello!

I create report and prepare data for it in runtime, show users button "To PDF".
I want to show viewer and immediately show export to PDF dialog.

1. How to do it?
2. How to preset properties in export setting dialog?
3. How to proset properties and skip showing dialog?

Thanks.

How to show Export Dialog in Viewer?

Posted: Mon Aug 01, 2011 2:28 am
by Vladimir
Hello,

1. At this moment there is no such possibility.

2. You can use the following method:

Code: Select all

StiSettings.setValue("Export", "PdfSettings.ImageResolution", 100);  // 10, 25, 50, 75, 100, 150, 200, 300, 400, 500
StiSettings.setValue("Export", "PdfSettings.ImageCompressionMethod", "Jpeg");  // Jpeg, Flate
StiSettings.setValue("Export", "PdfSettings.ImageQuality", 85);  // 1...100
StiSettings.setValue("Export", "PdfSettings.StandardPDFFonts", false);
StiSettings.setValue("Export", "PdfSettings.EmbeddedFonts", false);
StiSettings.setValue("Export", "PdfSettings.UseUnicode", false);
StiSettings.setValue("Export", "PdfSettings.Compressed", true);
StiSettings.setValue("Export", "PdfSettings.ExportRtfTextAsImage", false);
StiSettings.setValue("Export", "PdfSettings.PdfACompliance", false);

StiSettings.saveSettings();
p.s.: the setValue() method will be available in the next prerelease build, currently you can use the setSetting() method instead.

3. At this moment there is no such possibility.

Thank you.

How to show Export Dialog in Viewer?

Posted: Sat Aug 06, 2011 4:45 pm
by vitaliy.urazov
Vladimir wrote:Hello,

1. At this moment there is no such possibility.

2. You can use the following method:

Code: Select all

StiSettings.setValue("Export", "PdfSettings.ImageResolution", 100);  // 10, 25, 50, 75, 100, 150, 200, 300, 400, 500
StiSettings.setValue("Export", "PdfSettings.ImageCompressionMethod", "Jpeg");  // Jpeg, Flate
StiSettings.setValue("Export", "PdfSettings.ImageQuality", 85);  // 1...100
StiSettings.setValue("Export", "PdfSettings.StandardPDFFonts", false);
StiSettings.setValue("Export", "PdfSettings.EmbeddedFonts", false);
StiSettings.setValue("Export", "PdfSettings.UseUnicode", false);
StiSettings.setValue("Export", "PdfSettings.Compressed", true);
StiSettings.setValue("Export", "PdfSettings.ExportRtfTextAsImage", false);
StiSettings.setValue("Export", "PdfSettings.PdfACompliance", false);

StiSettings.saveSettings();
p.s.: the setValue() method will be available in the next prerelease build, currently you can use the setSetting() method instead.

3. At this moment there is no such possibility.

Thank you.

1, 3 - May I hope you implement it in the nearest feature?

2. I only use viewer swc in my project and Flex says there is no StiSettings property. Any ideas?

thanks.

How to show Export Dialog in Viewer?

Posted: Mon Aug 08, 2011 3:19 am
by Vladimir
Hello,

1. Most likely this feature will not be realized.

2. We have fixed this error. At this moment you can manually add the import of class:

Code: Select all

import stimulsoft.base.settings.StiSettings;
3. We added to our to-do list implementation of the options, disables the display of the export dialogs.

Thank you.

How to show Export Dialog in Viewer?

Posted: Wed Aug 17, 2011 4:25 am
by vitaliy.urazov
There is no StiSettings.saveSettings method!
Should I use save instead?

How to show Export Dialog in Viewer?

Posted: Wed Aug 17, 2011 8:18 am
by Vladimir
Hello,

[quote="vitaliy".urazov]There is no StiSettings.saveSettings method!
Should I use save instead?[/quote]

Yes, you can use StiSettings.save() method.

Thank you.