Sri Lanka .NET Forum
a mission and a vision with .NET

How to export crystal report to pdf in vb.net?

Get Microsoft Silverlight

rated by 0 users
This post has 3 Replies | 2 Followers

Top 75 Contributor
Fast Poster
Points 2,862
Shanga Posted: 10-12-2009 7:37 AM

Hi 

How to export crystal report to pdf in vb.net? I can generate 5 invoices in crystal report, i want to export these 5 invoices 1 by 1 to pdf when click the convert button, its should be 5 pdf files in diffreent name.

Thanks in advance

shanga

  • | Post Points: 50
Top 500 Contributor
Newbie
Points 330

Install a pdf writer program to your machine. Then print the pages as you wish. 

Chathura Wijekoon
  • | Post Points: 10
Top 150 Contributor
Cool Newbie
Points 1,166

 Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click

 

Dim Rpt As New CrystalDecisions.CrystalReports.Engine.ReportDocument()

        Rpt.Load("F:\@eWIS\NET\Samples\report\report\CrystalReport1.rpt")
        Rpt.ExportToDisk(CrystalDecisions.Shared.ExportFormatType.PortableDocFormat, "C:\krisha.pdf")

        MsgBox("DONE")

 

    End Sub

Krishantha Dinesh
Senior Systems Engineer
EW-Information systems (EWIS)

  • | Post Points: 30
Top 75 Contributor
Fast Poster
Points 2,862

hi

Thanking you, can make it.

 

shanga

  • | Post Points: 10
Page 1 of 1 (4 items) | RSS
This space is available for you to advertise. Please contact admin@dotnetforum.lk for more details on how to advertise on the .NET Forum.
Copyright © Sri Lanka .NET Forum. All Rights Reserved. Terms of Use | Privacy Policy