c# - show stimulsoft report in winform -


i new stimulsoft reports , struggling here. cannot display data set in report. created simple report.mrt file empty.this have done far...

    private void button1_click(object sender, eventargs e)     {         datatable table = gettable();         dataset ds = new dataset("office");         ds.tables.add(table);         ds.namespace = "y";         ds.prefix = "x";         stireport1.regdata("mydataset", ds);         stireport1.load("d:\\report.mrt");         stireport1.show();     }      public datatable gettable()     {         datatable table = new datatable();         table.columns.add("dosage", typeof(int));         table.columns.add("drug", typeof(string));         table.columns.add("patient", typeof(string));         table.columns.add("date", typeof(datetime));          table.rows.add(25, "indocin", "david", datetime.now);         table.rows.add(50, "enebrel", "sam", datetime.now);         table.rows.add(10, "hydralazine", "christoff", datetime.now);         table.rows.add(21, "combivent", "janet", datetime.now);         table.rows.add(100, "dilantin", "melanie", datetime.now);         return table;     } 

this doesnt display , not sure here. should add text fields report.mrt?

first of all, move stireport1.load before stireport1.regdata.
should compile report

stireport1.load("d:\\report.mrt"); stireport1.regdata("mydataset", ds); stireport1.dictionary.synchronize(); stireport1.compile(); stireport1.show(true); 

Comments

Popular posts from this blog

How to mention the localhost in android -

php - Calling a template part from a post -