-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathProgram.vb
23 lines (20 loc) · 868 Bytes
/
Program.vb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
'#Region "#namespaces"
Imports DevExpress.Spreadsheet
Imports DevExpress.XtraSpreadsheet.Services
Imports DevExpress.XtraSpreadsheet.Services.Implementation
'#End Region ' #namespaces
Namespace WorksheetChartsExportPDF
Friend Class Program
Shared Sub Main(ByVal args As String())
'#Region "#ExportToPDF"
Dim workbook As Workbook = New Workbook()
'Register required services.
workbook.AddService(GetType(IChartControllerFactoryService), New ChartControllerFactoryService())
workbook.AddService(GetType(IChartImageService), New ChartImageService())
workbook.LoadDocument("testDocument.xlsx")
workbook.ExportToPdf("resultingDocument.pdf")
'#End Region ' #ExportToPDF
System.Diagnostics.Process.Start("resultingDocument.pdf")
End Sub
End Class
End Namespace