Page 1 of 1

Unable to export to Excel or PDF

Posted: Fri Jun 28, 2013 7:10 am
by gallopaway7
Hi,

I am using stimulsoft reports for Flex and I am having problems exporting(save) certain file types
No window or popup opens to give me the save as options?

the following dont work
Adobe PDF file
Rich text file
Microsoft word
Excel

the following do work
document file
HTML file
Text file
CSV file

Re: Unable to export to Excel or PDF

Posted: Mon Jul 01, 2013 6:41 am
by Vladimir
Hello,

We tested these exports and found no errors. Please specify the version you are using, and also send us the MDC document file for testing.

Thank you.

Re: Unable to export to Excel or PDF

Posted: Mon Jul 08, 2013 2:04 pm
by gallopaway7
i have updated the versions and now get an error when I try to export
For my designer I am using version stimulsoft Reports.Web 2013.2.1611.0
and for Flex stimulsoft reports.FX for flex 2013.07.01

TypeError: Error #1007: Instantiation attempted on a non-constructor.
at mx.controls.sliderClasses::Slider/createBackgroundTrack()[E:\dev\4.y\frameworks\projects\mx\src\mx\controls\sliderClasses\Slider.as:1944]
at mx.controls.sliderClasses::Slider/createChildren()[E:\dev\4.y\frameworks\projects\mx\src\mx\controls\sliderClasses\Slider.as:1480]
at mx.core::UIComponent/initialize()[E:\dev\4.y\frameworks\projects\framework\src\mx\core\UIComponent.as:7634]
at mx.core::UIComponent/http://www.adobe.com/2006/flex/mx/internal::childAdded()[E:\dev\4.y\frameworks\projects\framework\src\mx\core\UIComponent.as:7495]
at mx.core::Container/http://www.adobe.com/2006/flex/mx/internal::childAdded()[E:\dev\4.y\frameworks\projects\mx\src\mx\core\Container.as:3974]
at mx.core::Container/addChildAt()[E:\dev\4.y\frameworks\projects\mx\src\mx\core\Container.as:2618]
at mx.core::Container/addChild()[E:\dev\4.y\frameworks\projects\mx\src\mx\core\Container.as:2534]
at mx.core::Container/createComponentFromDescriptor()[E:\dev\4.y\frameworks\projects\mx\src\mx\core\Container.as:4396]
at mx.core::Container/createComponentsFromDescriptors()[E:\dev\4.y\frameworks\projects\mx\src\mx\core\Container.as:4183]
at mx.core::Container/createChildren()[E:\dev\4.y\frameworks\projects\mx\src\mx\core\Container.as:3189]
at stimulsoft.controls.visual::StiGroupBox/createChildren()[D:\.Builder\temp\Stimulsoft_ControlsFx\stimulsoft\controls\visual\StiGroupBox.as:130]
at mx.core::UIComponent/initialize()[E:\dev\4.y\frameworks\projects\framework\src\mx\core\UIComponent.as:7634]
at mx.core::Container/initialize()[E:\dev\4.y\frameworks\projects\mx\src\mx\core\Container.as:3131]
at mx.core::UIComponent/http://www.adobe.com/2006/flex/mx/internal::childAdded()[E:\dev\4.y\frameworks\projects\framework\src\mx\core\UIComponent.as:7495]
at mx.core::Container/http://www.adobe.com/2006/flex/mx/internal::childAdded()[E:\dev\4.y\frameworks\projects\mx\src\mx\core\Container.as:3974]
at mx.core::Container/addChildAt()[E:\dev\4.y\frameworks\projects\mx\src\mx\core\Container.as:2618]
at mx.core::Container/addChild()[E:\dev\4.y\frameworks\projects\mx\src\mx\core\Container.as:2534]
at mx.core::Container/createComponentFromDescriptor()[E:\dev\4.y\frameworks\projects\mx\src\mx\core\Container.as:4396]
at mx.core::Container/createComponentsFromDescriptors()[E:\dev\4.y\frameworks\projects\mx\src\mx\core\Container.as:4183]
at mx.core::Container/createChildren()[E:\dev\4.y\frameworks\projects\mx\src\mx\core\Container.as:3189]
at stimulsoft.controls.visual::StiExpander/createChildren()[D:\.Builder\temp\Stimulsoft_ControlsFx\stimulsoft\controls\visual\StiExpander.as:176]
at mx.core::UIComponent/initialize()[E:\dev\4.y\frameworks\projects\framework\src\mx\core\UIComponent.as:7634]
at mx.core::Container/initialize()[E:\dev\4.y\frameworks\projects\mx\src\mx\core\Container.as:3131]
at stimulsoft.viewer.export.controls::StiExcelSettingsControl/initialize()
at mx.core::UIComponent/http://www.adobe.com/2006/flex/mx/internal::childAdded()[E:\dev\4.y\frameworks\projects\framework\src\mx\core\UIComponent.as:7495]
at mx.core::Container/http://www.adobe.com/2006/flex/mx/internal::childAdded()[E:\dev\4.y\frameworks\projects\mx\src\mx\core\Container.as:3974]
at mx.core::Container/addChildAt()[E:\dev\4.y\frameworks\projects\mx\src\mx\core\Container.as:2618]
at mx.core::Container/addChild()[E:\dev\4.y\frameworks\projects\mx\src\mx\core\Container.as:2534]
at mx.core::Container/createComponentFromDescriptor()[E:\dev\4.y\frameworks\projects\mx\src\mx\core\Container.as:4396]
at mx.core::Container/createComponentsFromDescriptors()[E:\dev\4.y\frameworks\projects\mx\src\mx\core\Container.as:4183]
at mx.core::Container/createChildren()[E:\dev\4.y\frameworks\projects\mx\src\mx\core\Container.as:3189]
at mx.core::UIComponent/initialize()[E:\dev\4.y\frameworks\projects\framework\src\mx\core\UIComponent.as:7634]
at mx.core::Container/initialize()[E:\dev\4.y\frameworks\projects\mx\src\mx\core\Container.as:3131]
at mx.core::UIComponent/http://www.adobe.com/2006/flex/mx/internal::childAdded()[E:\dev\4.y\frameworks\projects\framework\src\mx\core\UIComponent.as:7495]
at mx.core::Container/http://www.adobe.com/2006/flex/mx/internal::childAdded()[E:\dev\4.y\frameworks\projects\mx\src\mx\core\Container.as:3974]
at mx.core::Container/addChildAt()[E:\dev\4.y\frameworks\projects\mx\src\mx\core\Container.as:2618]
at mx.core::Container/addChild()[E:\dev\4.y\frameworks\projects\mx\src\mx\core\Container.as:2534]
at mx.core::Container/createComponentFromDescriptor()[E:\dev\4.y\frameworks\projects\mx\src\mx\core\Container.as:4396]
at mx.core::Container/createComponentsFromDescriptors()[E:\dev\4.y\frameworks\projects\mx\src\mx\core\Container.as:4183]
at mx.core::Container/createChildren()[E:\dev\4.y\frameworks\projects\mx\src\mx\core\Container.as:3189]
at stimulsoft.controls.visual::StiWindowForm/createChildren()[D:\.Builder\temp\Stimulsoft_ControlsFx\stimulsoft\controls\visual\StiWindowForm.as:466]
at mx.core::UIComponent/initialize()[E:\dev\4.y\frameworks\projects\framework\src\mx\core\UIComponent.as:7634]
at mx.core::Container/initialize()[E:\dev\4.y\frameworks\projects\mx\src\mx\core\Container.as:3131]
at stimulsoft.viewer.export::StiExcelExportSetupForm/initialize()
at mx.core::UIComponent/http://www.adobe.com/2006/flex/mx/internal::childAdded()[E:\dev\4.y\frameworks\projects\framework\src\mx\core\UIComponent.as:7495]
at mx.core::Container/http://www.adobe.com/2006/flex/mx/internal::childAdded()[E:\dev\4.y\frameworks\projects\mx\src\mx\core\Container.as:3974]
at mx.core::Container/addChildAt()[E:\dev\4.y\frameworks\projects\mx\src\mx\core\Container.as:2618]
at mx.core::Container/addChild()[E:\dev\4.y\frameworks\projects\mx\src\mx\core\Container.as:2534]
at stimulsoft.controls.visual::StiWindowForm/show()[D:\.Builder\temp\Stimulsoft_ControlsFx\stimulsoft\controls\visual\StiWindowForm.as:516]
at stimulsoft.viewer.panels::StiMainPanel/onExportMenuItemClick()[D:\.Builder\temp\Stimulsoft_ViewerFx\stimulsoft\viewer\panels\StiMainPanel.mxml:543]
at flash.events::EventDispatcher/dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at mx.core::UIComponent/dispatchEvent()[E:\dev\4.y\frameworks\projects\framework\src\mx\core\UIComponent.as:13152]
at stimulsoft.controls.visual::StiPopupMenu/onListItemClick()[D:\.Builder\temp\Stimulsoft_ControlsFx\stimulsoft\controls\visual\StiPopupMenu.as:172]
at flash.events::EventDispatcher/dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at mx.core::UIComponent/dispatchEvent()[E:\dev\4.y\frameworks\projects\framework\src\mx\core\UIComponent.as:13152]
at mx.controls.listClasses::ListBase/mouseClickHandler()[E:\dev\4.y\frameworks\projects\mx\src\mx\controls\listClasses\ListBase.as:10328]

Re: Unable to export to Excel or PDF

Posted: Mon Jul 08, 2013 2:10 pm
by gallopaway7
I am running my project in Flex SDK 4.6

Re: Unable to export to Excel or PDF

Posted: Wed Jul 10, 2013 1:07 pm
by Vladimir
Hello,

We have fixed this error, the update will be available in the next prerelease build.

Thank you.

Re: Unable to export to Excel or PDF

Posted: Mon Jul 15, 2013 9:17 am
by gallopaway7
Thank you but I am still getting the same error

Re: Unable to export to Excel or PDF

Posted: Mon Jul 15, 2013 11:04 am
by Vladimir
Hello,

We can't reproduce the error on your report.

Please specify the following:
1. What method are you using to view the report - report.show() or report.showDialog()
2. There is this error only on this report?
3. Are you using any Flex topics?

Thank you.

Re: Unable to export to Excel or PDF

Posted: Mon Jul 15, 2013 11:59 am
by gallopaway7
Hi, I seem to be getting this error on all my reports.. I only get this error when exporting to Excel, PDF etc as per my first post..

I am using a viewerFX and then setting the xml datasource..

private function InitializeReport(): void
{
CursorManager.setBusyCursor();
StiViewerFx.initialize();

var request:URLRequest = new URLRequest(repPath);
var loader:URLLoader = new URLLoader();
loader.addEventListener(Event.COMPLETE, onReportLoadComplete);
loader.load(request);
}

private function onReportLoadComplete(event: Event): void
{
var loader: URLLoader = event.target as URLLoader;
reportString = loader.data as String;

viewerFx.visible = true;
var report: StiReport = new StiReport();
report.loadReportFromString(reportString);
report.dictionary.databases.clear();
report.regDataXML("ReportConnection","ReportConnection",reportDataXML);
report.dictionary.synchronize();
report.show(viewerFx);
CursorManager.removeBusyCursor();
}

private function load():void
{
viewerFx.visible = true;
var report: StiReport = new StiReport();
report.loadReportFromString(reportString);
report.show(viewerFx);
}

Re: Unable to export to Excel or PDF

Posted: Wed Jul 17, 2013 9:31 am
by gallopaway7
Hi Please can you assist me with this, it is pretty urgent - we are going live soon and and will need to buy a license from stimulsoft - but we need the export to work first unfortunately

Re: Unable to export to Excel or PDF

Posted: Wed Jul 17, 2013 12:58 pm
by Vladimir
Hello,

Sorry for delay in response.
We have tested your code on a clean project, using the latest versions of the libraries, and could not reproduce the error. Please see the attached test project.
TestExport.zip
(5.04 MiB) Downloaded 429 times
Perhaps we're missing something. Please, make the changes to the project that would reproduce the error.

Thank you.