on dpi issue

Stimulsoft Reports.Flex discussion
Locked
jian
Posts: 9
Joined: Sat Mar 31, 2012 2:13 am

on dpi issue

Post by jian »

Hello,Buddy

I have two things to ask your answers

1) How can i set the default dpi =300 in my code, It means that when I view the report properties, it will show like the picture in attchment dirctly.

2) If i press "Print" button, and it set default dpi =100 for the printer. can i change the defalt dpi to 300 for printer first?

thank you !
Attachments
1758.default.png
1758.default.png (22.72 KiB) Viewed 2467 times
Vladimir
Posts: 1462
Joined: Fri Apr 13, 2007 4:05 am
Location: Earth

on dpi issue

Post by Vladimir »

Hello,

For the PDF export you can set the default value by using the following code:

Code: Select all

StiSettings.setValue("Export", "PdfSettings.ImageResolution", 100);  // 10, 25, 50, 75, 100, 150, 200, 300, 400, 500
StiSettings.saveSettings();
Unfortunately, the built-in print function you cannot specify DPI for images.

Thank you.
jian
Posts: 9
Joined: Sat Mar 31, 2012 2:13 am

on dpi issue

Post by jian »

Thank you, buddy.

well, How about the word, I USE for exporting word2007 like this :
StiSettings.setValue("Export", "Word2007Settings.ImageResolution", 300);
But it doesn't work, offer me a hand
Thank you again.
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

on dpi issue

Post by HighAley »

Hello.
jian wrote:well, How about the word, I USE for exporting word2007 like this :
StiSettings.setValue("Export", "Word2007Settings.ImageResolution", 300);
But it doesn't work, offer me a hand
You should use next code:

Code: Select all

StiSettings.setValue("Export", "WordSettings.ImageResolution", 300);  // 10, 25, 50, 75, 100, 150, 200, 300, 400, 500
StiSettings.saveSettings();
Thank you.
Locked