佳礼资讯网

 找回密码
 注册

ADVERTISEMENT

123
返回列表 发新帖
楼主: 雨吟

[Vb.net] #CRYSTAL REPORT LOGON FAIL WITH PASSWORD PROTECTED ACCESS DATABASE

[复制链接]
 楼主| 发表于 27-11-2005 06:02 PM | 显示全部楼层
原帖由 meemee 于 26-11-2005 03:32 PM 发表
所有form 的textbox?
Example 2

    Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
        AddHandler TextBox1.KeyPress, AddressOf MyKeyPress
        AddHandler TextBox2.KeyPress, AddressOf MyKeyPress
    End Sub

    Private Sub MyKeyPress(ByVal o As [Object], ByVal e As KeyPressEventArgs)
        MsgBox("testing"
    End Sub


非常谢谢你的帮忙。。不过,我最后没有一行行的 AddHandler TextBox1.KeyPress, AddressOf MyKeyPress


我直接


Private Sub MyKeyPress(ByVal o As [Object], ByVal e As KeyPressEventArgs)handles textBox1.keypress,textbox2.keypress,textbox3.keypress
        MsgBox("testing"
    End Sub


嗯。。这样子放逗号看起来乱了点。。。不过,可以跑啦~...
回复

使用道具 举报


ADVERTISEMENT

 楼主| 发表于 29-11-2005 01:29 PM | 显示全部楼层
一生人第一单接的案子已经完成了95%,还有5%就是让user testing and deploy 了...希望没什么大问题~

呵呵~~衷心感谢你们帮助我的第一次~谢谢谢谢~
回复

使用道具 举报

 楼主| 发表于 2-12-2005 04:20 PM | 显示全部楼层

CRYSTAL REPORT LOGON FAIL

我之前没有给ACCESS SET PASSWORD, 现在设定了。。。

程式依然可以跑。。。可是,CRYSTAL REPORT LOGON FAIL。。搜寻了很多,发现自己的编码和大家没什么差别...为什么会这样?


    Public rptCoupon As ReportDocument
    Dim crtableLogoninfos As New TableLogOnInfos
    Dim crtableLogoninfo As New TableLogOnInfo
    Dim crConnectionInfo As New ConnectionInfo
    Dim CrTables As Tables
    Dim CrTable As Table
  Dim crReportDocument As New ReportDocument

            crReportDocument.Load(couponPath)



            'Set the ConnectionInfo properties for logging on to
            'the Database



            With crConnectionInfo
                .ServerName = dataPath
                .DatabaseName = ""
                .UserID = "Admin"
                .Password = "atscrps"
            End With

         
            CrTables = crReportDocument.Database.Tables

                       For Each CrTable In CrTables
                crtableLogoninfo = CrTable.LogOnInfo
                crtableLogoninfo.ConnectionInfo = crConnectionInfo
                CrTable.ApplyLogOnInfo(crtableLogoninfo)

               


            Next
回复

使用道具 举报

 楼主| 发表于 4-12-2005 01:48 AM | 显示全部楼层
似乎是CR9的bug........所以我解除data的密码了~~~~
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

 

ADVERTISEMENT



ADVERTISEMENT



ADVERTISEMENT

ADVERTISEMENT


版权所有 © 1996-2023 Cari Internet Sdn Bhd (483575-W)|IPSERVERONE 提供云主机|广告刊登|关于我们|私隐权|免控|投诉|联络|脸书|佳礼资讯网

GMT+8, 27-7-2025 10:31 AM , Processed in 0.098274 second(s), 21 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表