Click here to Skip to main content
15,312,540 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i use stimulsoft in javascript.But the viewer can not display the desired project when loaded

var report = new Stimulsoft.Report.StiReport();
     
    report.loadFile("~/Source/SimpleList.mrt"); 
  
    var viewer = new Stimulsoft.Viewer.StiViewer(null, "StiViewer", false); viewer.renderHtml("content");  

    viewer.report = report;


but after load viewer when click open button in stimulsoft and open the file, Now the desired report is loaded!

Please help me to understand why the mentioned report is not displayed when loading the page

What I have tried:

i change report path
 report.loadFile("~/Source/SimpleList.mrt");
 report.loadFile("/Source/SimpleList.mrt");
  report.loadFile("../../Source/SimpleList.mrt");
report.loadFile("../../wwwroot/Source/SimpleList.mrt");
report.loadFile("D:/Projects/Test2/0-react_in_netcore/wwwroot/Source/SimpleList.mrt");

But neither was successful
Posted
Comments
0x01AA 25-Dec-21 9:14am
   
Looks like tag content does not exists the first time you load the report.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month


CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900