RunExportReport Method |
Namespace: Biolomics.BioCallback
public static void ExportReport( string p_ReportTemplateName, List<int> p_RecordIdList, string p_OutputFilePath, bool p_ExportAllRecords, long p_TableKey )
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