GrapeCity.ActiveReports.Web.v9 アセンブリ > GrapeCity.ActiveReports.Web 名前空間 > WebViewer クラス : ViewerType プロパティ |
'宣言 Public Property ViewerType As ViewerType
public ViewerType ViewerType {get; set;}
private void cboViewerType_SelectedIndexChanged(object sender, System.EventArgs e) { // ビューワの種類を選択します。 string selection = this.cboViewerType.Items[this.cboViewerType.SelectedIndex].Text; switch (selection) { case "AcrobatReader": //ViewerTypeをAcrobat Readerに設定します。 this.arvWebMain.ViewerType = GrapeCity.ActiveReports.Web.ViewerType.AcrobatReader; break; case "HtmlViewer": //ViewerTypeをHTMLViewerに設定します。 this.arvWebMain.ViewerType = GrapeCity.ActiveReports.Web.ViewerType.HtmlViewer; break; case "RawHtml": //ViewerTypeをRawHtmlに設定します。 this.arvWebMain.ViewerType = GrapeCity.ActiveReports.Web.ViewerType.RawHtml; break; case "FlashViewer": //ViewerTypeをFlashViewerに設定します。 this.arvWebMain.ViewerType = GrapeCity.ActiveReports.Web.ViewerType.FlashViewer; break; } }
Private Sub cboViewerType_SelectedIndexChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles cboViewerType.SelectedIndexChanged ' ビューワの種類を選択します。 Dim selection As String = Me.cboViewerType.Items(Me.cboViewerType.SelectedIndex).Text Select Case selection Case "AcrobatReader" 'ViewerTypeをAcrobat Readerに設定します。 Me.arvWebMain.ViewerType = GrapeCity.ActiveReports.Web.ViewerType.AcrobatReader Case "HtmlViewer" 'ViewerTypeをHTMLViewerに設定します。 Me.arvWebMain.ViewerType = GrapeCity.ActiveReports.Web.ViewerType.HtmlViewer Case "RawHtml" 'ViewerTypeをRawHTMLrに設定します。 Me.arvWebMain.ViewerType = GrapeCity.ActiveReports.Web.ViewerType.RawHtml Case "FlashViewer" 'ViewerTypeをFlashViewerに設定します。 Me.arvWebMain.ViewerType = GrapeCity.ActiveReports.Web.ViewerType.FlashViewer End Select End Sub