erorr on render

Stimulsoft Reports.JS discussion
Post Reply
geods3
Posts: 9
Joined: Wed Jun 15, 2016 2:06 pm

erorr on render

Post by geods3 »

hello i am trying the demo of js and i cannot find solution on that error

when i am edditing the report all goes well on preview as you see here:
1.png
1.png (40.82 KiB) Viewed 6269 times
the code i use is that for 1st ocation :

Code: Select all

   StiOptions.WebServer.url = "../data/handler.php";

    Stimulsoft.Base.Localization.StiLocalization.setLocalizationFile("el-GR.xml");

    var options = new Stimulsoft.Designer.StiDesignerOptions();
    options.appearance.fullScreenMode = true;

    var report = new Stimulsoft.Report.StiReport();
    report.loadFile("DeltioParalavis.mrt");
    report.dictionary.variables.getByName("xID").valueObject = 11;
    var designer = new Stimulsoft.Designer.StiDesigner(options, "StiDesigner", false);
    designer.report = report;
    designer.renderHtml("content");

but when i' m going to print it outpouts that error
2.png
2.png (71.49 KiB) Viewed 6269 times
and for that ocation (that returns the error) i use this:

Code: Select all

   var report = new Stimulsoft.Report.StiReport();

    report.loadFile("DeltioParalavis.mrt");
    report.dictionary.variables.getByName("xID").valueObject = 11;


    report.render()
    report.print()

as you see in place that i expect values from sql returns that:

Code: Select all

function n(){} 
i believe that render() not doing something well or i am writting something wrong

can you help me please?
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: erorr on render

Post by HighAley »

Hello.

Could you specify which version of our product do you use?
If you are using not the latest build, please, upgrade.
Let us know if you still have the issue.

Thank you.
geods3
Posts: 9
Joined: Wed Jun 15, 2016 2:06 pm

Re: erorr on render

Post by geods3 »

i am using last version Stimulsoft-Reports-JS-2016.1 ..
in console i see that not sending request on server 'handler.php' .. (i don' t know if that is correct)
and all that when i render the page... when i preview it through designer all works correct
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: erorr on render

Post by HighAley »

Hello.

Sorry, but this is not the latest build.
Please, upgrade to the 2016.1.16 build from 2016.06.09.
There were made a lot of improvements.

Thank you.
geods3
Posts: 9
Joined: Wed Jun 15, 2016 2:06 pm

Re: erorr on render

Post by geods3 »

exactly the same result....
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: erorr on render

Post by HighAley »

Hello.

Sorry, we can't reproduce the issue.
Maybe there is something wrong with your report.
Could you send us your report template with sample data for analysis?

Thank you.
geods3
Posts: 9
Joined: Wed Jun 15, 2016 2:06 pm

Re: erorr on render

Post by geods3 »

i attached you another report that doing the same ... hope helps...
Attachments
report.rar
(2.06 KiB) Downloaded 368 times
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: erorr on render

Post by HighAley »

Hello.

Please, try to use next code for printing:

Code: Select all

report.renderAsync(function(){
    report.print();
  });
Thank you.
geods3
Posts: 9
Joined: Wed Jun 15, 2016 2:06 pm

Re: erorr on render

Post by geods3 »

ok! thats solves the error.. thank you very much!
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: erorr on render

Post by HighAley »

Hello.

We are glad to help you.
Let us know if you need our help.

Thank you.
Post Reply