トップページへ PASSJ ブログへ
トップページへ
分科会
特集!
コミュニケーション
資格
セミナー・コンファレンス
インフォメーション



Webテクノロジー ボードリーダー:小川 貢

毎月第2、第4木曜日はボードリーダーからのレポートを掲載いたします。
 
   

2004年6月24日
『どっとねっとと雑多な日々 最終回』

この題で掲載するのはおそらく最後になると思います。

さて「どっとねっとと雑多な日々」と銘打って、いろいろ記事を書かせていただきました。
30 回も続けてこれたのも、皆さんの励ましやご協力があったからです。
当初 .NET Framework 1.0 のころに、私が記事を書いたりセミナーで発表するために、MS の方にいろいろと便宜を図っていただいたのも非常に助けになりました。

今後はもう少し連載色を強くして、テーマに沿って記事を書いていきたいと思います。
目下の目標は SQL Server 2000 Reporting Services + .NET Framework というあたりで記事を書いていきたいと思いますが、希望のテーマがあればぜひ事務局に連絡してください。

皆さん、どうでしたでしょうか?
面白かったでしょうか? それともつまらなかったでしょうか?
参考になったでしょうか?

ぜひ声を聞かせてください。

最後に Tips を SQL Server 2000 Reporting Services の Report 表示プログラムのサンプルを書きます。
これを実行するためには Microsoft Web Browser コントロールを COM のコントロールとして参照してください。

--
using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using System.Windows.Forms;
using System.Data;

namespace ReportClients
{
  /// <summary>
  /// MainForm の概要の説明です。
  /// </summary>
  public class MainForm : System.Windows.Forms.Form
  {
   private System.Windows.Forms.Button reportView;
   private AxSHDocVw.AxWebBrowser webBrowser;
   private AxInetCtlsObjects.AxInet axInet1;
   /// <summary>
   /// 必要なデザイナ変数です。
   /// </summary>
   private System.ComponentModel.Container components = null;

   public MainForm()
   {
     //
     // Windows フォーム デザイナ サポートに必要です。
     //
     InitializeComponent();

     //
     // TODO: InitializeComponent 呼び出しの後に、コンストラクタ コードを追加してください。
     //
   }

   /// <summary>
   /// 使用されているリソースに後処理を実行します。
   /// </summary>
   protected override void Dispose( bool disposing )
   {
     if( disposing )
     {
      if (components != null)
      {
       components.Dispose();
      }
     }
     base.Dispose( disposing );
   }

   #region Windows フォーム デザイナで生成されたコード
   /// <summary>
   /// デザイナ サポートに必要なメソッドです。このメソッドの内容を
   /// コード エディタで変更しないでください。
   /// </summary>
   private void InitializeComponent()
   {
    System.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(MainForm));
    this.webBrowser = new AxSHDocVw.AxWebBrowser();
    this.reportView = new System.Windows.Forms.Button();
    this.axInet1 = new AxInetCtlsObjects.AxInet();
    ((System.ComponentModel.ISupportInitialize)(this.webBrowser)).BeginInit();
    ((System.ComponentModel.ISupportInitialize)(this.axInet1)).BeginInit();
this.SuspendLayout();
    //
    // webBrowser
    //
    this.webBrowser.Enabled = true;
    this.webBrowser.Location = new System.Drawing.Point(32, 48);
    this.webBrowser.OcxState =     ((System.Windows.Forms.AxHost.State)(resources.GetObject("webBrowser.OcxState")));
    this.webBrowser.Size = new System.Drawing.Size(608, 328);
    this.webBrowser.TabIndex = 0;
    //
    // reportView
    //
    this.reportView.Location = new System.Drawing.Point(40, 8);
    this.reportView.Name = "reportView";
    this.reportView.TabIndex = 1;
    this.reportView.Text = "ReportView";
    this.reportView.Click += new System.EventHandler(this.reportView_Click);
    //
    // axInet1
    //
    this.axInet1.Enabled = true;
    this.axInet1.Location = new System.Drawing.Point(296, 400);
    this.axInet1.Name = "axInet1";
    this.axInet1.OcxState =     ((System.Windows.Forms.AxHost.State)(resources.GetObject("axInet1.OcxState")));
    this.axInet1.Size = new System.Drawing.Size(38, 38);
    this.axInet1.TabIndex = 2;
    //
    // MainForm
    //
    this.AutoScaleBaseSize = new System.Drawing.Size(5, 12);
    this.ClientSize = new System.Drawing.Size(664, 654);
    this.Controls.Add(this.axInet1);
    this.Controls.Add(this.reportView);
    this.Controls.Add(this.webBrowser);
    this.Name = "MainForm";
    this.Text = "ReportService";
    ((System.ComponentModel.ISupportInitialize)(this.webBrowser)).EndInit();
    ((System.ComponentModel.ISupportInitialize)(this.axInet1)).EndInit();
    this.ResumeLayout(false);

   }
   #endregion

   /// <summary>
   /// アプリケーションのメイン エントリ ポイントです。
   /// </summary>
   [STAThread]
   static void Main()
   {
    Application.Run(new MainForm());
   }   

   private void reportView_Click(object sender, System.EventArgs e)
   {
    ReportService.ReportingService rs = new ReportClients.ReportService.ReportingService();
    rs.Credentials = System.Net.CredentialCache.DefaultCredentials;
    object o = "";
    object uri = rs.Url + "?/Reportings/PASSJReporting";
    this.webBrowser.Navigate2(ref uri, ref o, ref o, ref o, ref o);
   }
  }
}
--

ボードリーダーレポート トップページへ
 
PASSJメールニュース 著作権ついて プライバシーポリシー リンクポリシー お問い合わせ
(C) 2005 Professional Association for SQL Server Japan. All rights reserved.