SHARE
TWEET

VB .NET : Tampilkan dan Cetak 1 File PDF

stevennathaniel Mar 5th, 2018 154 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Imports DevExpress.XtraReports.UI
  2.  
  3.  
  4. Public Class Form3
  5.  
  6.     ' Source code ini berhasil untuk menampilkan laporan dan mencetak kedalam bentuk file sebuah PDF.
  7.  
  8.     Dim Report As New XtraReport2()
  9.  
  10.     Dim Tool As ReportPrintTool = New ReportPrintTool(Report)
  11.  
  12.     Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
  13.  
  14.         Tool.ShowPreview()
  15.  
  16.  
  17.     End Sub
  18.  
  19.     Private Sub Button2_Click(sender As Object, e As EventArgs) Handles Button2.Click
  20.  
  21.         Dim laporan2 As New XtraReport2
  22.  
  23.         laporan2.ExportToPdf("C:\STEVEN\ProyekVB\Latihan7\Latihan7\Latihan7\bin\Debug\filePDF\contohForm3.pdf")
  24.  
  25.     End Sub
  26. End Class
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top