c# - Generic Dataset without Database ask for log on information -
i'm trying force generated dataset generated crystal study without using database, when previewing study inquire username , password database.
is there anyway accomplish without connecting database? many thanks.
reportdocument tempcover = new reportdocument(); tempcover.load(@"test.rpt"); dataset ds = new dataset(); datatable dt = new datatable(); ds.tables.add(dt); datacolumn frontimage = new datacolumn("frontimage"); datacolumn backimage = new datacolumn("backimage"); dt.columns.add(frontimage); dt.columns.add(backimage); datarow row = dt.newrow(); dt.rows.add(row); tempcover.setdatasource(ds);
problem fixed passing datatable study instead of dataset.
tempcover.setdatasource(ds);
to
tempcover.setdatasource(dt);
c# crystal-reports dataset
No comments:
Post a Comment