GrapeCity.ActiveReports.Export.Image.v12 アセンブリ > GrapeCity.ActiveReports.Export.Image.Tiff.Section 名前空間 > TiffExport クラス > Export メソッド : Export(SectionDocument,Stream) メソッド |
'宣言 Public Overloads Sub Export( _ ByVal document As SectionDocument, _ ByVal outputStream As Stream _ )
public void Export( SectionDocument document, Stream outputStream )
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) Response.AddHeader("Content-Length",Astream.Length.ToString()) Response.BinaryWrite(stream.ToArray()) Response.End()
SectionReport1 rpt = new SectionReport1(); try { rpt.Run(false); } catch(Exception eRunReport) { Response.Clear(); Response.Write("<h1>ErrorArunningAreport:</h1>"); Response.Write(eRunReport.ToString()); return; } Response.ContentType="image/tiff"; Response.AddHeader("content-disposition","attachment;Afilename=temp.tiff"); GrapeCity.ActiveReports.Export.Image.Tiff.Section.TiffExport T = new GrapeCity.ActiveReports.Export.Image.Tiff.Section.TiffExport(); System.IO.MemoryStream memStream= new System.IO.MemoryStream(); T.Export(rpt.Document,memStream); Response.AddHeader("Content-Length",memStream.Length.ToString()); Response.BinaryWrite(memStream.ToArray()); Response.End();