Click or drag to resize
RunExportReport 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 static void ExportReport(
	string p_ReportTemplateName,
	List<int> p_RecordIdList,
	string p_OutputFilePath,
	bool p_ExportAllRecords,
	long p_TableKey
)

Parameters

p_ReportTemplateName
Type: SystemString
Name of the report template.
p_RecordIdList
Type: System.Collections.GenericListInt32
The recordid list.
p_OutputFilePath
Type: SystemString
The output file path.
p_ExportAllRecords
Type: SystemBoolean
if set to true [Export all records] else export selection.
p_TableKey
Type: SystemInt64
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