on 08-22-2009 1:13 AM
お世話になります。
下記質問に関して、ご教授お願い致します。
◆環境◆
Windows Vista SP1
Visual Basic 2008
Crystal Reports XI Release 2
Oracle 10g
◆現象◆
Crystal Reports XI Release 2でデザイン済みのレポートを
VBのフォーム上に表示(データのリフレシュも)させたいのですが
どのようなコーディングになるのでしょうか?
イメージとしては
1.レポートファイルを指定
2.ユーザ名、パスワード指定
3.リフレッシュ
4.その後印刷
VB と書いてするけど、Visual Basic 2008 って Visual Stduio .NET 2008 のことですよね。
さっきのコードは、RDC なので、.NET で使えません。
また、Crystal Reports XI Release 2 製品は、Visual Studio .NET 2008 開発環境はサポートされていません。
.NET のサンプルコードも以下のリンクにあります。
https://www.sdn.sap.com/irj/boc/samples
以下のリンクの一覧から「Crystal Reports .NET SDK u2013 Sample Applications from Tutorials」にデータベースにログオンするコー例が含まれています。
https://www.sdn.sap.com/irj/boc/index?rid=/library/uuid/b07a158a-b766-2b10-a79e-bfc6d19c6b99
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
色々試していたら
レポートファイルを指定を指定して、プレビューするところまでできました。
しかし、そのレポートをリフレシュすると以下のエラーが表示されます。
DLL'crdb_oracle.dllをロードできませんでした。・・・・・
レポートとデータベースと接続していないというエラーなのでしょうか?
ユーザー名、パスワードなどの記述はコーディングしていません。(仕方がわかりません)
お忙しいでしょうが、ご教授お願い申し上げます。
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
開発手法は、RDC ですよね。以下のリンクにサンプルがあります。
(記述例)
For i=1 to Report.Datbase.Tables.Count
Report.Datbase.Tables.Item(i).ConnectionProperties.Item("xxx") = u201DYYYYYu201D
Report.Datbase.Tables.Item(i).ConnectionProperties.Item("User Id") = "scott"
Report.Datbase.Tables.Item(i).ConnectionProperties.Item("Password") = "tiger"
Next i
xxx は、接続方法やデータベースの種類で違います。開発者向けのヘルプに一覧が書いてあると思います。
Oracle データベースでは、"Data Source" にサービス名を設定することで接続できると思います。
(例) Report.Datbase.Tables.Item(i).ConnectionProperties.Item("Data Source") = u201Dorclu201D
User | Count |
---|---|
92 | |
11 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.