Page 1 of 1

Different result on local machine and server

Posted: Wed Jun 28, 2006 1:20 am
by Alex Horn
Hello!

I dynamically create report from code. On my machine all works fine, but when i upload my project to server all components have invalid sizes. Width and height is increased. I don't change anything in my project when upload it. Any ideas?

Different result on local machine and server

Posted: Wed Jun 28, 2006 3:42 am
by Edward
Alex wrote:Hello!
I dynamically create report from code. On my machine all works fine, but when i upload my project to server all components have invalid sizes. Width and height is increased. I don't change anything in my project when upload it. Any ideas?
When report is created it get measurement units from environment.
If units on local machine differs from units on server you need set units manually.
Following code sets coordinates and sizes of a report:

Code: Select all

StiReport report = new StiReport();
// set coordinates and sizes of a report to Inches
report.ReportUnit = StiReportUnitType.Inches;
// set coordinates and sizes of a report to Centimeters
report.ReportUnit = StiReportUnitType.Centimeters;

public enum StiReportUnitType
    {
        Centimeters = 0,
        HundredthsOfInch = 1,
        Inches = 2,
        Millimeters = 3,
    }
Thanks.