Page 1 of 1

erorr on render

Posted: Wed Jun 15, 2016 2:27 pm
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 6279 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 6279 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?

Re: erorr on render

Posted: Thu Jun 16, 2016 10:29 am
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.

Re: erorr on render

Posted: Thu Jun 16, 2016 10:45 am
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

Re: erorr on render

Posted: Thu Jun 16, 2016 1:58 pm
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.

Re: erorr on render

Posted: Thu Jun 16, 2016 2:18 pm
by geods3
exactly the same result....

Re: erorr on render

Posted: Fri Jun 17, 2016 1:27 pm
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.

Re: erorr on render

Posted: Fri Jun 17, 2016 1:50 pm
by geods3
i attached you another report that doing the same ... hope helps...

Re: erorr on render

Posted: Mon Jun 20, 2016 11:06 am
by HighAley
Hello.

Please, try to use next code for printing:

Code: Select all

report.renderAsync(function(){
    report.print();
  });
Thank you.

Re: erorr on render

Posted: Tue Jun 21, 2016 6:37 am
by geods3
ok! thats solves the error.. thank you very much!

Re: erorr on render

Posted: Tue Jun 21, 2016 11:38 am
by HighAley
Hello.

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

Thank you.