Export report in web

Stimulsoft Reports.Flex discussion
Locked
Jean Carlos
Posts: 7
Joined: Tue Jan 18, 2011 12:51 pm
Location: Brasil

Export report in web

Post by Jean Carlos »

The functions to save as pdf and excel do not work in your browser. I am using the buttons on the control bar of the Viewer.

The error that appears is:

TypeError: Error #1007: Instantiation attempted on a non-constructor.
at mx.controls.sliderClasses::Slider/createBackgroundTrack()[E:\dev\4.0.0\frameworks\projects\framework\src\mx\controls\sliderClasses\Slider.as:1943]
at mx.controls.sliderClasses::Slider/createChildren()[E:\dev\4.0.0\frameworks\projects\framework\src\mx\controls\sliderClasses\Slider.as:1479]
at mx.core::UIComponent/initialize()[E:\dev\4.0.0\frameworks\projects\framework\src\mx\core\UIComponent.as:7250]
at mx.core::UIComponent/http://www.adobe.com/2006/flex/mx/internal::childAdded()[E:\dev\4.0.0\frameworks\projects\framework\src\mx\core\UIComponent.as:7142]
at mx.core::Container/http://www.adobe.com/2006/flex/mx/internal::childAdded()[E:\dev\4.0.0\frameworks\projects\framework\src\mx\core\Container.as:3951]
at mx.core::Container/addChildAt()[E:\dev\4.0.0\frameworks\projects\framework\src\mx\core\Container.as:2616]
at mx.core::Container/addChild()[E:\dev\4.0.0\frameworks\projects\framework\src\mx\core\Container.as:2534]
at mx.core::Container/createComponentFromDescriptor()[E:\dev\4.0.0\frameworks\projects\framework\src\mx\core\Container.as:4371]
at mx.core::Container/createComponentsFromDescriptors()[E:\dev\4.0.0\frameworks\projects\framework\src\mx\core\Container.as:4160]
at mx.core::Container/createChildren()[E:\dev\4.0.0\frameworks\projects\framework\src\mx\core\Container.as:3187]
at stimulsoft.controls.visual::StiGroupBox/createChildren()[D:\Flex\.BuilderFx\temp\Stimulsoft_ControlsFx\stimulsoft\controls\visual\StiGroupBox.as:102]
at mx.core::UIComponent/initialize()[E:\dev\4.0.0\frameworks\projects\framework\src\mx\core\UIComponent.as:7250]
at mx.core::Container/initialize()[E:\dev\4.0.0\frameworks\projects\framework\src\mx\core\Container.as:3129]
at mx.core::UIComponent/http://www.adobe.com/2006/flex/mx/internal::childAdded()[E:\dev\4.0.0\frameworks\projects\framework\src\mx\core\UIComponent.as:7142]
at mx.core::Container/http://www.adobe.com/2006/flex/mx/internal::childAdded()[E:\dev\4.0.0\frameworks\projects\framework\src\mx\core\Container.as:3951]
at mx.core::Container/addChildAt()[E:\dev\4.0.0\frameworks\projects\framework\src\mx\core\Container.as:2616]
at mx.core::Container/addChild()[E:\dev\4.0.0\frameworks\projects\framework\src\mx\core\Container.as:2534]
at mx.core::Container/createComponentFromDescriptor()[E:\dev\4.0.0\frameworks\projects\framework\src\mx\core\Container.as:4371]
at mx.core::Container/createComponentsFromDescriptors()[E:\dev\4.0.0\frameworks\projects\framework\src\mx\core\Container.as:4160]
at mx.core::Container/createChildren()[E:\dev\4.0.0\frameworks\projects\framework\src\mx\core\Container.as:3187]
at stimulsoft.controls.visual::StiExpander/createChildren()[D:\Flex\.BuilderFx\temp\Stimulsoft_ControlsFx\stimulsoft\controls\visual\StiExpander.as:176]
at mx.core::UIComponent/initialize()[E:\dev\4.0.0\frameworks\projects\framework\src\mx\core\UIComponent.as:7250]
at mx.core::Container/initialize()[E:\dev\4.0.0\frameworks\projects\framework\src\mx\core\Container.as:3129]
at stimulsoft.viewer.export.controls::StiPdfSettingsControl/initialize()
at mx.core::UIComponent/http://www.adobe.com/2006/flex/mx/internal::childAdded()[E:\dev\4.0.0\frameworks\projects\framework\src\mx\core\UIComponent.as:7142]
at mx.core::Container/http://www.adobe.com/2006/flex/mx/internal::childAdded()[E:\dev\4.0.0\frameworks\projects\framework\src\mx\core\Container.as:3951]
at mx.core::Container/addChildAt()[E:\dev\4.0.0\frameworks\projects\framework\src\mx\core\Container.as:2616]
at mx.core::Container/addChild()[E:\dev\4.0.0\frameworks\projects\framework\src\mx\core\Container.as:2534]
at mx.core::Container/createComponentFromDescriptor()[E:\dev\4.0.0\frameworks\projects\framework\src\mx\core\Container.as:4371]
at mx.core::Container/createComponentsFromDescriptors()[E:\dev\4.0.0\frameworks\projects\framework\src\mx\core\Container.as:4160]
at mx.core::Container/createChildren()[E:\dev\4.0.0\frameworks\projects\framework\src\mx\core\Container.as:3187]
at mx.core::UIComponent/initialize()[E:\dev\4.0.0\frameworks\projects\framework\src\mx\core\UIComponent.as:7250]
at mx.core::Container/initialize()[E:\dev\4.0.0\frameworks\projects\framework\src\mx\core\Container.as:3129]
at mx.core::UIComponent/http://www.adobe.com/2006/flex/mx/internal::childAdded()[E:\dev\4.0.0\frameworks\projects\framework\src\mx\core\UIComponent.as:7142]
at mx.core::Container/http://www.adobe.com/2006/flex/mx/internal::childAdded()[E:\dev\4.0.0\frameworks\projects\framework\src\mx\core\Container.as:3951]
at mx.core::Container/addChildAt()[E:\dev\4.0.0\frameworks\projects\framework\src\mx\core\Container.as:2616]
at mx.core::Container/addChild()[E:\dev\4.0.0\frameworks\projects\framework\src\mx\core\Container.as:2534]
at mx.core::Container/createComponentFromDescriptor()[E:\dev\4.0.0\frameworks\projects\framework\src\mx\core\Container.as:4371]
at mx.core::Container/createComponentsFromDescriptors()[E:\dev\4.0.0\frameworks\projects\framework\src\mx\core\Container.as:4160]
at mx.core::Container/createChildren()[E:\dev\4.0.0\frameworks\projects\framework\src\mx\core\Container.as:3187]
at stimulsoft.controls.visual::StiWindowForm/createChildren()[D:\Flex\.BuilderFx\temp\Stimulsoft_ControlsFx\stimulsoft\controls\visual\StiWindowForm.as:466]
at mx.core::UIComponent/initialize()[E:\dev\4.0.0\frameworks\projects\framework\src\mx\core\UIComponent.as:7250]
at mx.core::Container/initialize()[E:\dev\4.0.0\frameworks\projects\framework\src\mx\core\Container.as:3129]
at stimulsoft.viewer.export::StiPdfExportSetupForm/initialize()
at mx.core::UIComponent/http://www.adobe.com/2006/flex/mx/internal::childAdded()[E:\dev\4.0.0\frameworks\projects\framework\src\mx\core\UIComponent.as:7142]
at mx.core::Container/http://www.adobe.com/2006/flex/mx/internal::childAdded()[E:\dev\4.0.0\frameworks\projects\framework\src\mx\core\Container.as:3951]
at mx.core::Container/addChildAt()[E:\dev\4.0.0\frameworks\projects\framework\src\mx\core\Container.as:2616]
at mx.core::Container/addChild()[E:\dev\4.0.0\frameworks\projects\framework\src\mx\core\Container.as:2534]
at stimulsoft.controls.visual::StiWindowForm/show()[D:\Flex\.BuilderFx\temp\Stimulsoft_ControlsFx\stimulsoft\controls\visual\StiWindowForm.as:516]
at stimulsoft.viewer.panels::StiMainPanel/onExportMenuItemClick()[D:\Flex\.BuilderFx\temp\Stimulsoft_ViewerFx\stimulsoft\viewer\panels\StiMainPanel.mxml:486]
at flash.events::EventDispatcher/dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at mx.core::UIComponent/dispatchEvent()[E:\dev\4.0.0\frameworks\projects\framework\src\mx\core\UIComponent.as:12266]
at stimulsoft.controls.visual::StiPopupMenu/onListItemClick()[D:\Flex\.BuilderFx\temp\Stimulsoft_ControlsFx\stimulsoft\controls\visual\StiPopupMenu.as:161]
at flash.events::EventDispatcher/dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at mx.core::UIComponent/dispatchEvent()[E:\dev\4.0.0\frameworks\projects\framework\src\mx\core\UIComponent.as:12266]
at mx.controls.listClasses::ListBase/mouseClickHandler()[E:\dev\4.0.0\frameworks\projects\framework\src\mx\controls\listClasses\ListBase.as:10296]

How can I solve this problem?
I am using Flash Builder 4, IE9. Chrome also does not work but does not show any error.

I also tried to create a function in Flash Builder, but the example in the documentation that has not worked Flex FAQ.

I use the version FXFLEX_2011.01.11_Trial, if the problem is resolved satisfactorily, I would buy the license.

If I open the report designer in Air it works normally.
Thanks
mynameis
Posts: 1
Joined: Tue Jan 18, 2011 4:20 pm

Export report in web

Post by mynameis »

Hi, I did try it on Flex SDK 4.1.0 and IE9 beta, and it worked fine.

Maybe you should try latest build http://stimulsoft.com/GetFile.aspx?file ... _Trial.zip ?
Vladimir
Posts: 1462
Joined: Fri Apr 13, 2007 4:05 am
Location: Earth

Export report in web

Post by Vladimir »

Hello,

We develop and test our product under Flash Builder 4 with SDK 4.0, in this configuration all of our samples work correctly.

We need more information: does the error occur when you export any report? Does the error occur when exporting of our test reports? Do the other functions of the designer and the viewer work correctly? Also, try to install the latest version of Flash Player from Adobe website.

Thank you.
Jean Carlos
Posts: 7
Joined: Tue Jan 18, 2011 12:51 pm
Location: Brasil

Export report in web

Post by Jean Carlos »

All other options are working properly. The version of flash player is updated, but the error continues. The error only appears when I try to save any report to pdf or excel in the browser. I'll install the latest version of flex Reports.Fx is to see if the problem disappears.
Thank you!
Vladimir
Posts: 1462
Joined: Fri Apr 13, 2007 4:05 am
Location: Earth

Export report in web

Post by Vladimir »

Hello,

For testing we use IE8 and Firefox 3.6
Could you test the exports under other browsers such as Firefox, Opera or Chrome?

As well, we made some changes in the code, which may affect on this error. You can find the update in the attached archive.

Thank you.
Attachments
803.FXFLEX_2011.01.20_Trial.zip
(3.27 MiB) Downloaded 471 times
Jean Carlos
Posts: 7
Joined: Tue Jan 18, 2011 12:51 pm
Location: Brasil

Export report in web

Post by Jean Carlos »

Hello,
I'm still with the problem of exporting to PDF, rich text.
I am opening the report in a module, will that is helping the error occur?
Thank you
Vladimir
Posts: 1462
Joined: Fri Apr 13, 2007 4:05 am
Location: Earth

Export report in web

Post by Vladimir »

Hello, Jean Carlos Kresko

Please see a specified below forum topic, in which the same problem described:

http://forum.stimulsoft.com/Default.aspx?g=posts&t=4117

Please let us know whether the from this topic solution helps you?

Thank you.
Jean Carlos
Posts: 7
Joined: Tue Jan 18, 2011 12:51 pm
Location: Brasil

Export report in web

Post by Jean Carlos »

The suggested change worked perfectly. However as the loading is done in the main application, it just doubled in size. This shipment was made in the module that was bigger and is now smaller ...
But the solution was correct.
Thank you for your attention and congratulations again.
Jean
Andrew
Posts: 4108
Joined: Fri Jun 09, 2006 3:58 am

Export report in web

Post by Andrew »

Hello,

Have a nice weekend!

Thank you.
Locked