on 07-08-2009 2:32 AM
以下に関して、何か情報や対応策等ご存知でしたら教えてください。
OS:windows server 2003 R2(SP2)
言語:Visual Basic 6.0(SP6)
帳票:Crystal Reports XIR2(SP5)
DB:Oracle 9i(9.2.0.8)
VB上で以下のコードで記述し、Oracleと接続し、帳票を出力します。
Dim connectproperty As CRAXDRT.ConnectionProperty
For Llidx = 1 To MoCrRep.Database.Tables.Count
Set connectproperty = MoCrRep.Database.Tables.Item(Llidx).ConnectionProperties.Item("DSN")
connectproperty.Value = u201DDSN名u201D
Set connectproperty = MoCrRep.Database.Tables.Item(Llidx).ConnectionProperties.Item("USERID")
connectproperty.Value = u201DユーザIDu201D
Set connectproperty = MoCrRep.Database.Tables.Item(Llidx).ConnectionProperties.Item("PASSWORD")
connectproperty.Value = u201Dパスワードu201D
Next Llidx
プログラム起動後、初回の出力は正しく行われるのですが、プログラムを終了せずに
再度出力しようとすると「Set connectproperty = MoCrRep.Database.Tables.Item(Llidx).ConnectionProperties.Item("USERID")」の
部分で「インデックスが有効範囲にありません。」というエラーが出ます。
以上、よろしくお願い致します
自己解決しました。
レポートファイルがCrystal Reports 8.0で作成されていたものだったので
Crystal Reports XI R2で開いてから保存するとエラーが解消されました。
お騒がせしました。
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.