Run. ExportReport Method |
Namespace: Biolomics.BioCallback
Public Shared Sub ExportReport ( p_ReportTemplateName As String, p_RecordIdList As List(Of Integer), p_OutputFilePath As String, p_ExportAllRecords As Boolean, p_TableKey As Long )
Imports System Imports BioloMICS.BioCallback Imports BioloMICS.SharedClasses Imports System.Collections Public Class Program <STAThread()> Shared Sub Main() 'record id list to be exported from table Dim recordIdlist As New Generic.List(Of Integer) 'fill id list with some record ids recordIdlist.Add(1) recordIdlist.Add(2) recordIdlist.Add(3) 'report name to be exported Dim reportName As String = "My test PDF Report" 'expoprt file path to save Dim exportFilePath As String = "Your_OutPut_Path\\test.pdf" 'exprt all records or use selection Dim exportAllRecords As Boolean = False 'table key to export from Dim tableKey As Long = run.GetCurrentLayout().TableKey 'get current layout and table key from it run.ExportReport(reportName, recordIdlist, exportFilePath, exportAllRecords, tableKey) End Sub End Class