本帖最后由 Crystal.Li 于 2021-11-19 17:20 编辑
继承报错问题
public class ViewerControl : GrapeCity.ActiveReports.Viewer.Win.Viewer
{
private ResultDataSet InRs = new ResultDataSet();
public void SaveAS(string pathFileName)
{
string pathName = SaveFilePathName(pathFileName);
GrapeCity.ActiveReports.Export.Pdf.Section.PdfExport PDFEx = new GrapeCity.ActiveReports.Export.Pdf.Section.PdfExport();
base.Export(PDFEx, new System.IO.FileInfo(pathName));
}
void Document_LocateDataSource(object sender, GrapeCity.ActiveReports.LocateDataSourceEventArgs args)
{
args.Data = ((DataSet)InRs);
args.Data = null;
}
|