ActiveReports 12
Export(SectionDocument,Stream,String) Method
Example 

GrapeCity.ActiveReports.Export.Image.v12 Assembly > GrapeCity.ActiveReports.Export.Image.Tiff.Section Namespace > TiffExport Class > Export Method : Export(SectionDocument,Stream,String) Method
The ActiveReports object to export.
The System.IO.Stream 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 the specified stream.
Syntax
'Declaration
 
Public Overloads Sub Export( _
   ByVal document As SectionDocument, _
   ByVal outputStream As Stream, _
   ByVal pageRange As String _
) 
public void Export( 
   SectionDocument document,
   Stream outputStream,
   string pageRange
)

Parameters

document
The ActiveReports object to export.
outputStream
The System.IO.Stream 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
Dim rpt As New SectionReport1()
rpt.Run(False)
Response.ContentType="image/tiff"
Dim Astream = New System.IO.MemoryStream()
Response.AddHeader("content-disposition","attachment;filename=temp.tiff")
Me.TiffExport1.Export(rpt.Document,Astream,"1-2")
Response.AddHeader("Content-Length",Astream.Length.ToString())
Response.BinaryWrite(Astream.ToArray())
Response.End()
SectionReport1 rpt = new SectionReport1();
try
{
rpt.Run(false);
}
catch(Exception eRunReport)
{
Response.Clear();
Response.Write("<h1>Errorrunningreport:</h1>");
Response.Write(eRunReport.ToString());
return;
}
Response.ContentType="image/tiff";
Response.AddHeader("content-disposition","attachment;filename=temp.tiff");
GrapeCity.ActiveReports.Export.Image.Tiff.Section.TiffExport T= new GrapeCity.ActiveReports.Export.Image.Tiff.Section.TiffExport();
System.IO.MemoryStream AmemStream = new System.IO.MemoryStream();
T.Export(rpt.Document,AmemStream, "1-2");
Response.AddHeader("Content-Length",AmemStream.Length.ToString());
Response.BinaryWrite(AmemStream.ToArray());
Response.End();
See Also

Reference

TiffExport Class
TiffExport Members
Overload List