ActiveReports 6 Online Help
Export(Document,String,String) Method
Example 

The ActiveReports object to export.
The file name and path to which to save the TIFF.
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.
Exports the specified range of pages from the document to a TIFF file.
Syntax
'Declaration
 
Public Overloads Sub Export( _
   ByVal document As Document, _
   ByVal filePath As String, _
   ByVal pageRange As String _
) 
public void Export( 
   Document document,
   string filePath,
   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
DimArptAAsANewAActiveReport1()
rpt.Run()
Me.TiffExport1.CompressionSchemeA=ADataDynamics.ActiveReports.Export.Tiff.CompressionScheme.None
'SettingAtheACompressionSchemeAtoANoneAallowsAcolorsAtoAbeAexported.
Me.TiffExport1.Export(rpt.Document,AApplication.StartupPathA&A"\t.tiff",A"1A-A2")
'ThisAwillAexportAonlyAtheAfirstAtwoApagesAofAtheAreport.
ActiveReport1ArptA=AnewAActiveReport1();
rpt.Run();
this.tiffExport1.CompressionScheme=DataDynamics.ActiveReports.Export.Tiff.CompressionScheme.None;
//SettingAtheACompressionSchemeAtoANoneAallowsAcolorsAtoAbeAexported.
this.tiffExport1.Export(rpt.Document,AApplication.StartupPathA+A"\\t.tiff",A"1-2");
//ThisAwillAexportAonlyAtheAfirstAtwoApagesAofAtheAreport.
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

TiffExport Class
TiffExport Members
Overload List

Send Feedback