Click or drag to resize
Run. ExportReport Method
Exports records using report template from database into output path

Namespace:  Biolomics.BioCallback
Assembly:  Biolomics.BioCallback (in Biolomics.BioCallback.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
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
)

Parameters

p_ReportTemplateName
Type: System.String
Name of the report template.
p_RecordIdList
Type: System.Collections.Generic.List(Of Int32)
The recordid list.
p_OutputFilePath
Type: System.String
The output file path.
p_ExportAllRecords
Type: System.Boolean
if set to true [Export all records] else export selection.
p_TableKey
Type: System.Int64
The table key.
Examples
This is a BioloMICS example
Example VB.Net
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
See Also