How to show Export Dialog in Viewer?
-
- Posts: 47
- Joined: Thu Jul 14, 2011 6:09 pm
How to show Export Dialog in Viewer?
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.
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?
Hello,
1. At this moment there is no such possibility.
2. You can use the following method:
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. 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();
3. At this moment there is no such possibility.
Thank you.
-
- Posts: 47
- Joined: Thu Jul 14, 2011 6:09 pm
How to show Export Dialog in Viewer?
Vladimir wrote:Hello,
1. At this moment there is no such possibility.
2. You can use the following method:
p.s.: the setValue() method will be available in the next prerelease build, currently you can use the setSetting() method instead.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();
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?
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:
3. We added to our to-do list implementation of the options, disables the display of the export dialogs.
Thank you.
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;
Thank you.
-
- Posts: 47
- Joined: Thu Jul 14, 2011 6:09 pm
How to show Export Dialog in Viewer?
There is no StiSettings.saveSettings method!
Should I use save instead?
Should I use save instead?
How to show Export Dialog in Viewer?
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.
[quote="vitaliy".urazov]There is no StiSettings.saveSettings method!
Should I use save instead?[/quote]
Yes, you can use StiSettings.save() method.
Thank you.