Using the GiosPDF Library in a ASP .NET 3.5 web application. The library examples use a datatable to populate a PDF table. All my data is in various SQLDataSources. How do I convert/cast the SqlDataSource into a Datatable?
I tried this:
DataView sdsLateRoutesDV = new DataView();
DataTable sdsLateRoutesDT = new DataTable();
sdsLateRoutesDV = (DataView)sdsLateRoutes_long.Select(DataSourceSelectArguments.Empty);
sdsLateRoutesDT = sdsLateRoutesDV.ToTable();
But it crashes...