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
on dpi issue
- Attachments
-
- 1758.default.png (22.72 KiB) Viewed 2467 times
on dpi issue
Hello,
For the PDF export you can set the default value by using the following code:
Unfortunately, the built-in print function you cannot specify DPI for images.
Thank you.
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();
Thank you.
on dpi issue
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.
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
Hello.
Thank you.
You should use next code: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
Code: Select all
StiSettings.setValue("Export", "WordSettings.ImageResolution", 300); // 10, 25, 50, 75, 100, 150, 200, 300, 400, 500
StiSettings.saveSettings();