473,513 Members | 2,492 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

VB.Net Crystal Reports Access Password Protected Database

3 New Member
I have an Access database that I have recently had to password protect. I am using CR8.5 to do the reporting and it worked fine until I password protected the database. This is the code that worked.

Dim CR As New ReportDocument
CR.Load(reportPath) ' & ".rpt")
Dim crParameterDiscreteValue As ParameterDiscreteValue
Dim crParameterFieldDefinitions As ParameterFieldDefinitions
Dim crParameterFieldLocation As ParameterFieldDefinition
Dim crParameterValues As ParameterValues
crParameterFieldDefinitions = CR.DataDefinition.ParameterFields
crParameterFieldLocation = crParameterFieldDefinitions.Item("Agency Name")
crParameterValues = crParameterFieldLocation.CurrentValues
crParameterDiscreteValue = New CrystalDecisions.Shared.ParameterDiscreteValue
crParameterDiscreteValue.Value = ReportParamName
crParameterValues.Add(crParameterDiscreteValue)
crParameterFieldLocation.ApplyCurrentValues(crPara meterValues)
crViewer1.ReportSource = CR
crViewer1.Show()
Me.WindowState = FormWindowState.Normal
Me.MaximizeBox = True

What modifications do I need to make to add in the password. I do not have a username on the Access database. Everything that I have seen is pointing toward LOGONINFO and a username seems to be required. This is CR8.5 but I could move up to 10 if necessary. If someone can guide me in either getting 8.5 to accept the pwd or updating to 10 (references, dlls, code) and get the password fed in I would greatly appreciate it..
Jan 31 '08 #1
2 4089
kenobewan
4,871 Recognized Expert Specialist
Usually the un & password is fed through the connection string in a config file, which may be encrypted. HTH.
Feb 1 '08 #2
slink9
3 New Member
The connection string (UDL) is not encrypted and does have the database location and name but the password is added to it in VB code.
Feb 2 '08 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

0
1121
by: Marcel Sengers | last post by:
Hi. I have got a problem with the using of Crystal Reports. When I try to start a report he always wants a password.I know that if I release the programm I have written to a client I need to...
0
2217
by: gasturbtec | last post by:
please help im new at access programming and i just got this project dropped in my lap because the old programmer quit. i've been doing ok so far but now i need to add code to an existing database...
1
1333
by: Brian Henry | last post by:
I have a few reports in crystal reports.net, and our database the application works with is selected at startup (development, live,test).. but the reports were all designed with the development...
1
8204
by: aikwee | last post by:
hi, i want to do a read and write access to a XML file in a share folder with user name and password protected. I have the username and password provided but i don't know how to do it in VB.NET. ...
6
3142
by: clusardi2k | last post by:
Hello again, I have to go home and read up on Access. But, I have read else-where in this newsgroup that I can just save the password in the database under scrutiny. Wouldn't it be wasteful...
4
1709
by: abrar1 | last post by:
i am using Access 2003 with vb6 my database is password protected and i want it to protect i have used ur following code but it generate error "Could not find installable ISAM." ...
4
1909
by: Rodo | last post by:
Hi all, I'm new to this whole thing. I have a bunch of text files that are created by a software at work that keeps info one of our products. Each unit being calibrated gets a "record" (track by...
2
2192
by: afromanam | last post by:
Hello, I need to link some tables (which are in DB1) to another database (DB2). But DB1 is password protected. Please let me say this clearly: 1. DB1 does NOT have a database security...
0
1569
by: netri | last post by:
I need to write a java program in which i need to access a computer in my network using IP address but system is password protected.so how can i access a password protected system to fetch a file...
0
7260
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7161
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7384
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
1
7101
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
5686
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
5089
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
3222
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1596
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
802
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.