PowerTools ActiveReports for .NET 11.0J
Export(SectionDocument,String,String) メソッド
使用例 

エクスポートするActiveReportsのDocumentオブジェクト。
メインのHTMLファイルを保存するファイル名とパス。複数のファイル名が生成される場合(画像、目次ページなど)、この引数の値は、他のファイル名のプレフィックスとして使用されます。
エクスポートするページを、カンマで区切って指定するか、2-8のように開始ページと終了ページを指定します。
指定したドキュメントをHTMLにエクスポートします。
構文
'宣言
 
Public Overloads Sub Export( _
   ByVal document As SectionDocument, _
   ByVal filePath As String, _
   ByVal pagesRange As String _
) 
public void Export( 
   SectionDocument document,
   string filePath,
   string pagesRange
)

パラメータ

document
エクスポートするActiveReportsのDocumentオブジェクト。
filePath
メインのHTMLファイルを保存するファイル名とパス。複数のファイル名が生成される場合(画像、目次ページなど)、この引数の値は、他のファイル名のプレフィックスとして使用されます。
pagesRange
エクスポートするページを、カンマで区切って指定するか、2-8のように開始ページと終了ページを指定します。
使用例
private void btnExport_Click(object sender, System.EventArgs e)
{
    rptGrapeCity rpt = new rptGrapeCity();
    GrapeCity.ActiveReports.Export.Html.Section.HtmlExport h = new GrapeCity.ActiveReports.Export.Html.Section.HtmlExport();
    rpt.Run();
    this.arv.Document = rpt.Document;
    h.Export(rpt.Document, Application.StartupPath + "\\h.html", "1-3");
}
Private Sub btnExport_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
    Dim rpt As New SectionReport1
    Dim h As New GrapeCity.ActiveReports.Export.Html.HtmlExport
    rpt.Run()
    Me.Viewer1.Document = rpt.Document
    h.Export(rpt.Document, Application.StartupPath & "\h.html", "1-3")
End Sub
参照

関連項目

HtmlExport クラス
HtmlExport メンバ
オーバーロード一覧

 

 


©2003-2017 GrapeCity inc. All rights reserved.