Samples Not Working

Stimulsoft Reports.Flex discussion
Locked
trademark16
Posts: 20
Joined: Sun Aug 29, 2010 2:56 am
Location: Buffalo, NY

Samples Not Working

Post by trademark16 »

I am having trouble running the samples. For example when i click the View Document button in the View Document example i get:

// Create new report object
var report: StiReport = new StiReport();
// Load document from XML string
report.loadDocumentFromString(documentString);
// Show report in Viewer
report.show();

in the TextArea and not a report. This also happens on ViewReport and others. Odd that is actually displays the code for the function and not run the code. I must be missing something. Any help would be great.
Vladimir
Posts: 1462
Joined: Fri Apr 13, 2007 4:05 am
Location: Earth

Samples Not Working

Post by Vladimir »

Hello,

Please tell us what version of Flash Builder do you use to run the samples? Also tell us did you copy the Viewer and Designer components libraries (.swc files) to the libs folder of the project?

Thank you.
trademark16
Posts: 20
Joined: Sun Aug 29, 2010 2:56 am
Location: Buffalo, NY

Samples Not Working

Post by trademark16 »

Flash Builder 4.0.0.14159 and yes the swc are there.
Vladimir
Posts: 1462
Joined: Fri Apr 13, 2007 4:05 am
Location: Earth

Samples Not Working

Post by Vladimir »

Hello,

Please download the 2010.2 release of the product, we checked this issue on specified example - everything is working correctly.

Thank you.
trademark16
Posts: 20
Joined: Sun Aug 29, 2010 2:56 am
Location: Buffalo, NY

Samples Not Working

Post by trademark16 »

It appears that i get an additional error when trying the samples. It deals with a Label. Is spark required when creating my project or can i just create a new project with MX only? The error i get when i call initialize on either StiViewerFx or StiDesignerFx is "Type was not found or was not a compile-time constant: Label".
trademark16
Posts: 20
Joined: Sun Aug 29, 2010 2:56 am
Location: Buffalo, NY

Samples Not Working

Post by trademark16 »

I found my answer. It appears that yes, the component set MX + Spark must be check.
Vladimir
Posts: 1462
Joined: Fri Apr 13, 2007 4:05 am
Location: Earth

Samples Not Working

Post by Vladimir »

Hello,

Yes, we use some features and components from the Spark library in our project. You must use the Spark library in project.

Thank you.
tonysameh
Posts: 10
Joined: Mon Nov 08, 2010 6:09 am
Location: Egypt

Samples Not Working

Post by tonysameh »

trademark16 wrote:I am having trouble running the samples. For example when i click the View Document button in the View Document example i get:

// Create new report object
var report: StiReport = new StiReport();
// Load document from XML string
report.loadDocumentFromString(documentString);
// Show report in Viewer
report.show();

in the TextArea and not a report. This also happens on ViewReport and others. Odd that is actually displays the code for the function and not run the code. I must be missing something. Any help would be great.
That happened to me when launching the application using Firefox. If I changed the web browser to IE (Windows -> Preferences -> Web Browser), it works fine.
Vladimir
Posts: 1462
Joined: Fri Apr 13, 2007 4:05 am
Location: Earth

Samples Not Working

Post by Vladimir »

Hello,

We have tested the sample 02_ViewDocument on the Firefox browser version 3.6 with installed Flash Plugin version 10.1.102.64. Maybe you have an old version of Flash Plugin, please try to update it from the Adobe site: http://get.adobe.com/flashplayer/

Thank you.
Locked