Page 1 of 1

on dpi issue

Posted: Sat Mar 31, 2012 2:32 am
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 !

on dpi issue

Posted: Mon Apr 02, 2012 10:23 am
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.

on dpi issue

Posted: Wed Apr 04, 2012 11:02 pm
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.

on dpi issue

Posted: Thu Apr 05, 2012 4:23 am
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.