You probably want to look into using crystal reports for this. Once the user has selected a row form the Datagrid you can move that row into a data table, bind that to a crsytal report, and then export that to a pdf.
User 565426
Posts
-
database to pdf -
How to integrate reporting service with vb.netA good place to start would be with the samples included in reporting services. Personally I figured out most of what I need to know by looking at the RSExplorer example. Assuming you installed reporting services in the default path you can find it here: C:\Program Files\Microsoft SQL Server\MSSQL\Reporting Services\Samples\Applications\RSExplorer\vb Beyond that there is a lot of good information in the Books Online for reporting services. Hope that helps, Daryl Morgans
-
Text file with a DataGridWhat you will need to do is create a datatable to store the file in. The following should get you started. Dim dt As New DataTable("MyTable") Dim dc As New DataColumn("Column1") Dim rw As DataRow rw = dt.NewRow() rw("Column1") = SomeValue dt.Rows.Add(rw) MyDataGrid.Datasource = dt
-
Text file with a DataGridYou will need to specify weather you are using VB6 or .NET, the code willbe quiet different. Thanks, Daryl
-
Crystal Reports?oops...forgot I was in the C# forum. The above code is in vb .net, if you need any help converting it, let me know.
-
Crystal Reports?You'll want to start by creating a data schema for your data source and adding this too your project. You can do this by either using datasource.WriteXmlSchema() or by hand. Once you have the schema in your project go into you report and right click anywhere on it and select Database->Add/Remove Database. You should see your dataset under Project data-> ADO .NET datasets. Now all of the tables and fields from that dataset should be added to the Field explorer in the report, go ahead and drag them on too the report. Once you have laid out your report you can use the following code to assign the dataset too it: MyReport oRpt = New MyReport oRpt.SetDataSource(mydataset) CrystalReportViewer1.DisplayGroupTree = False CrystalReportViewer1.ShowGroupTreeButton = False CrystalReportViewer1.ReportSource = oRpt