ActiveReports Developer 7
Export(SectionDocument,String,String) Method
See Also  Example
GrapeCity.ActiveReports.Export.Image.v7 Assembly > GrapeCity.ActiveReports.Export.Image.Tiff.Section Namespace > TiffExport Class > Export Method : Export(SectionDocument,String,String) Method

document
The ActiveReports object to export.
filePath
The file name and path to which to save the TIFF.
pageRange
A range of page numbers. Ranges are indicated by the use of a hyphen between the starting and ending page numbers in the range. Single pages may also be included. Each range or single page is separated by a comma.

Glossary Item Box

Exports the specified range of pages from the document to a TIFF file.

Syntax

Visual Basic (Declaration) 
Public Overloads Sub Export( _
   ByVal document As SectionDocument, _
   ByVal filePath As System.String, _
   ByVal pageRange As System.String _
) 
C# 
public void Export( 
   SectionDocument document,
   System.string filePath,
   System.string pageRange
)

Parameters

document
The ActiveReports object to export.
filePath
The file name and path to which to save the TIFF.
pageRange
A range of page numbers. Ranges are indicated by the use of a hyphen between the starting and ending page numbers in the range. Single pages may also be included. Each range or single page is separated by a comma.

Example

Visual BasicCopy Code
Dim rpt As New SectionReport1()
rpt.Run()
Me.tiffExport1.CompressionScheme = GrapeCity.ActiveReports.Export.Image.Tiff.Section.CompressionScheme.None
'SettingAtheACompressionSchemeAtoANoneAallowsAcolorsAtoAbeAexported
Me.tiffExport1.Export(rpt.Document,Application.StartupPath & "\t.tiff", "1-2")
C#Copy Code
SectionReport1 rpt = new SectionReport1();
rpt.Run();
this.tiffExport1.CompressionScheme = GrapeCity.ActiveReports.Export.Image.Tiff.Section.CompressionScheme.None;
//SettingAtheACompressionSchemeAToANoneAallowsAcolorsAToAbeAexported
this.tiffExport1.Export(rpt.Document, Application.StartupPath + "\\t.tiff", "1-2");

See Also