Home All Groups Group Topic Archive Search About
Author
15 Mar 2005 7:09 PM
vishal
Hello everybody,

I need to export a datalist to an pdf file. So basically i
want to create an pdf file and open it with the datalist
data. Any idea or suggestion is very very appreciated.


Thanks

Author
15 Mar 2005 7:36 PM
Elton Wang
You may either use 3nd party component or create Crystal
Report to export to pdf file.

HTH

Elton Wang

Show quoteHide quote
>-----Original Message-----
>Hello everybody,
>
>I need to export a datalist to an pdf file. So basically
i
>want to create an pdf file and open it with the datalist
>data. Any idea or suggestion is very very appreciated.
>
>
>Thanks
>.
>
Author
15 Mar 2005 7:42 PM
Vishal
Thanks for the resoponse elton. Do i have to create a
report file when I want to export it via crystal reports?
We currently have a crystal report version and I would
like to use it, but I dont want to create each time a rpt
file for all of my reports. It needs to be dynamic.

Thanks


Show quoteHide quote
>-----Original Message-----
>You may either use 3nd party component or create Crystal
>Report to export to pdf file.
>
>HTH
>
>Elton Wang
>
>>-----Original Message-----
>>Hello everybody,
>>
>>I need to export a datalist to an pdf file. So basically
>i
>>want to create an pdf file and open it with the datalist
>>data. Any idea or suggestion is very very appreciated.
>>
>>
>>Thanks
>>.
>>
>.
>
Author
15 Mar 2005 8:02 PM
Elton Wang
Hi Vishal,

Crystal Reports for .NET is much more flexible than
Crystal Reports itself. If your queries have same schema
and require report to show same format, the report can be
dynamically bound to datatable(s) as its data source.

Actually, there are also many free (at least free trail
version)  PDF components for exporting PDF file. You can
google many results. 


HTH

Elton
Show quoteHide quote
>-----Original Message-----
>Thanks for the resoponse elton. Do i have to create a
>report file when I want to export it via crystal reports?
>We currently have a crystal report version and I would
>like to use it, but I dont want to create each time a rpt
>file for all of my reports. It needs to be dynamic.
>
>Thanks
>
>
>>-----Original Message-----
>>You may either use 3nd party component or create Crystal
>>Report to export to pdf file.
>>
>>HTH
>>
>>Elton Wang
>>
>>>-----Original Message-----
>>>Hello everybody,
>>>
>>>I need to export a datalist to an pdf file. So
basically
>>i
>>>want to create an pdf file and open it with the
datalist
>>>data. Any idea or suggestion is very very appreciated.
>>>
>>>
>>>Thanks
>>>.
>>>
>>.
>>
>.
>
Author
15 Mar 2005 8:27 PM
Vishal
Hi Elton,

   many thanks for the reponse. Do you have any example
code that describes what you say. If so it would help me a
lot. Please let me know about that asap.

Thanks


Show quoteHide quote
>-----Original Message-----
>Hi Vishal,
>
>Crystal Reports for .NET is much more flexible than
>Crystal Reports itself. If your queries have same schema
>and require report to show same format, the report can be
>dynamically bound to datatable(s) as its data source.
>
>Actually, there are also many free (at least free trail
>version)  PDF components for exporting PDF file. You can
>google many results. 
>
>
>HTH
>
>Elton
>>-----Original Message-----
>>Thanks for the resoponse elton. Do i have to create a
>>report file when I want to export it via crystal
reports?
>>We currently have a crystal report version and I would
>>like to use it, but I dont want to create each time a
rpt
>>file for all of my reports. It needs to be dynamic.
>>
>>Thanks
>>
>>
>>>-----Original Message-----
>>>You may either use 3nd party component or create
Crystal
>>>Report to export to pdf file.
>>>
>>>HTH
>>>
>>>Elton Wang
>>>
>>>>-----Original Message-----
>>>>Hello everybody,
>>>>
>>>>I need to export a datalist to an pdf file. So
>basically
>>>i
>>>>want to create an pdf file and open it with the
>datalist
>>>>data. Any idea or suggestion is very very appreciated.
>>>>
>>>>
>>>>Thanks
>>>>.
>>>>
>>>.
>>>
>>.
>>
>.
>
Author
17 Mar 2005 2:57 PM
Elton Wang
Hi Vishal,

Following an embedded CR report export to pdf file sample
code (report name crReport):

Dim report As
CrystalDecisions.CrystalReports.Engine.ReportClass = New
crReport
Dim dap As New SqlDataAdapter(sql, reportString)
Dim table As New DataTable
dap.Fill(table)
report.Database.Tables(0).SetDataSource(table)

If System.IO.File.Exists(exportFileName) Then
      System.IO.File.Delete(exportFileName)
End If

report.ExportToDisk
(CrystalDecisions.Shared.ExportFormatType.PortableDocFormat
, exportFileName)
Response.Clear()
Response.Charset = String.Empty
Response.ContentType = "Application/pdf"
Response.WriteFile(file)


HTH
Show quoteHide quote
>-----Original Message-----
>Hi Elton,
>
>   many thanks for the reponse. Do you have any example
>code that describes what you say. If so it would help me
a
>lot. Please let me know about that asap.
>
>Thanks
>
>
>>-----Original Message-----
>>Hi Vishal,
>>
>>Crystal Reports for .NET is much more flexible than
>>Crystal Reports itself. If your queries have same schema
>>and require report to show same format, the report can
be
>>dynamically bound to datatable(s) as its data source.
>>
>>Actually, there are also many free (at least free trail
>>version)  PDF components for exporting PDF file. You can
>>google many results. 
>>
>>
>>HTH
>>
>>Elton
>>>-----Original Message-----
>>>Thanks for the resoponse elton. Do i have to create a
>>>report file when I want to export it via crystal
>reports?
>>>We currently have a crystal report version and I would
>>>like to use it, but I dont want to create each time a
>rpt
>>>file for all of my reports. It needs to be dynamic.
>>>
>>>Thanks
>>>
>>>
>>>>-----Original Message-----
>>>>You may either use 3nd party component or create
>Crystal
>>>>Report to export to pdf file.
>>>>
>>>>HTH
>>>>
>>>>Elton Wang
>>>>
>>>>>-----Original Message-----
>>>>>Hello everybody,
>>>>>
>>>>>I need to export a datalist to an pdf file. So
>>basically
>>>>i
>>>>>want to create an pdf file and open it with the
>>datalist
>>>>>data. Any idea or suggestion is very very
appreciated.
>>>>>
>>>>>
>>>>>Thanks
>>>>>.
>>>>>
>>>>.
>>>>
>>>.
>>>
>>.
>>
>.
>