MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.
'openFileDialog_FileOk - loads selected file into the viewer control Private Sub dlgOpenFile_FileOk(ByVal sender As Object, ByVal e As System.ComponentModel.CancelEventArgs) Handles dlgOpenFile.FileOk '1) Create a loop in the program logic to load an RDF file or stream into a Document object. Me.dlgOpenFile.Multiselect = True Me.cboExportFormat1.SelectedValue = "Portable Document Format (PDF)" Dim file As String For Each file In dlgOpenFile.FileNames Me.arvMain.Document.Load(Me.dlgOpenFile.FileName) ' 2) Pass this Document into the PDFExport object's Export method. Dim filePath As String = Me.PromptSaveFile("Portable Document Format", ".pdf") Dim pdf As ArExports.Pdf.PdfExport = CType(Me.exportComponent, ArExports.Pdf.PdfExport) pdf.Export(Me.arvMain.Document, filePath) '3) Dispose of the document and repeat the process. Me.arvMain.Document.Dispose() Me.arvMain.Document = Nothing Next (file) End Sub 'dlgOpenFile_FileOk
Add your voice to the tech community where 5M+ people just like you are talking about what matters.
Join the community of 500,000 technology professionals and ask your questions.