Howdy all.
Using VSNet 2003 on an XP Pro SP2 boox. Trying to use Crystal Reports
to access an mdb file with access security/workspace.
Simple report of customers but after spending mucho time researching -
but still not knowing why/what caused it -a load report failed err,
read some articles and this problem was resolved.
Now I have a logon failed err. Code below was modified for C# from
article in dotnetjunkies "Creating Reports using Crystal Reports for
Visual Studio .NET."
Appreciate any suggestions/comments on how to resolve this err and
finally display the simple report.
Below is the code used to display report. The rem'ed VB code is from
the article.
Thank you,
Rey
*************** ****
protected CrystalDecision s.Web.CrystalRe portViewer
CrystalReportVi ewer1;
//CrystalDecision s.CrystalReport s.Engine.Table myTable;
//CrystalDecision s.Shared.TableL ogOnInfo myLogin;
private void Page_Load(objec t sender, System.EventArg s e)
{
// Put user code to initialize the page here
// in order to not receive a logon failed err msg
// need to use following code to incl the 2 lines above
rptTest rpt = new rptTest(); // var of rpt
// CrystalDecision s.CrystalReport s.Engine.Table myTable;
CrystalDecision s.Shared.TableL ogOnInfo myLogin;
foreach (CrystalDecisio ns.CrystalRepor ts.Engine.Table myTable in
rpt.Database.Ta bles)
{
myLogin = myTable.LogOnIn fo;
myLogin.Connect ionInfo.Passwor d = "12345";
myLogin.Connect ionInfo.UserID = "aUser";
myTable.ApplyLo gOnInfo (myLogin);
}
CrystalReportVi ewer1.ReportSou rce = rpt;
this.DataBind() ;
}
}
/*
Dim myTable As CrystalDecision s.CrystalReport s.Engine.Table
Dim myLogin As CrystalDecision s.Shared.TableL ogOnInfo
Private Sub Page_Load(ByVal sender As System.Object, ByVal e As
System.EventArg s) Handles MyBase.Load
crpt = New CrystalReport1( )
For Each myTable In crpt.Database.T ables
myLogin = myTable.LogOnIn fo
myLogin.Connect ionInfo.Passwor d = "test"
myLogin.Connect ionInfo.UserID = "sa"
myTable.ApplyLo gOnInfo(myLogin )
Next
CrystalReportVi ewer1.ReportSou rce = crpt
*/ 4 1903
Hola Rey,
- Check these documents in the BusinessObjects Knowledge Base: http://support.businessobjects.com/s...rt&language=EN
- Take a look at the ReportDocument. SetDatabaseLogo n() method, you could do
with only one line of code what now is taking you several.
Regards - Octavio // CrystalDecision s.CrystalReport s.Engine.Table myTable; CrystalDecision s.Shared.TableL ogOnInfo myLogin;
foreach (CrystalDecisio ns.CrystalRepor ts.Engine.Table myTable in rpt.Database.Ta bles) { myLogin = myTable.LogOnIn fo; myLogin.Connect ionInfo.Passwor d = "12345"; myLogin.Connect ionInfo.UserID = "aUser"; myTable.ApplyLo gOnInfo (myLogin);
"Rey" <re********@cox .net> escribió en el mensaje
news:11******** **************@ g47g2000cwa.goo glegroups.com.. . Howdy all.
Using VSNet 2003 on an XP Pro SP2 boox. Trying to use Crystal Reports to access an mdb file with access security/workspace.
Simple report of customers but after spending mucho time researching - but still not knowing why/what caused it -a load report failed err, read some articles and this problem was resolved. Now I have a logon failed err. Code below was modified for C# from article in dotnetjunkies "Creating Reports using Crystal Reports for Visual Studio .NET."
Appreciate any suggestions/comments on how to resolve this err and finally display the simple report.
Below is the code used to display report. The rem'ed VB code is from the article.
Thank you, Rey
*************** ****
protected CrystalDecision s.Web.CrystalRe portViewer CrystalReportVi ewer1; //CrystalDecision s.CrystalReport s.Engine.Table myTable; //CrystalDecision s.Shared.TableL ogOnInfo myLogin;
private void Page_Load(objec t sender, System.EventArg s e) { // Put user code to initialize the page here // in order to not receive a logon failed err msg // need to use following code to incl the 2 lines above rptTest rpt = new rptTest(); // var of rpt // CrystalDecision s.CrystalReport s.Engine.Table myTable; CrystalDecision s.Shared.TableL ogOnInfo myLogin;
foreach (CrystalDecisio ns.CrystalRepor ts.Engine.Table myTable in rpt.Database.Ta bles) { myLogin = myTable.LogOnIn fo; myLogin.Connect ionInfo.Passwor d = "12345"; myLogin.Connect ionInfo.UserID = "aUser"; myTable.ApplyLo gOnInfo (myLogin);
}
CrystalReportVi ewer1.ReportSou rce = rpt; this.DataBind() ; } } /*
Dim myTable As CrystalDecision s.CrystalReport s.Engine.Table Dim myLogin As CrystalDecision s.Shared.TableL ogOnInfo Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArg s) Handles MyBase.Load crpt = New CrystalReport1( )
For Each myTable In crpt.Database.T ables myLogin = myTable.LogOnIn fo myLogin.Connect ionInfo.Passwor d = "test" myLogin.Connect ionInfo.UserID = "sa" myTable.ApplyLo gOnInfo(myLogin ) Next
CrystalReportVi ewer1.ReportSou rce = crpt */
Buenas, Octavio.
Thanks for the tip.
Was able to get logged on when I changed the machine.config file as a
test. Reset it back, stopped, restarted and even rebooted and was then
able to access the mdb w/a quickie rpt...
Now when I attempt to do same but using the push meth via a dataset, I
now get "Not a valid account name or password" msg. And this is with
your tip and setting same for each tbl of which there is only one being
used in the rpt.
CR is leaving a bad taste in my mouth...
Gracias for the tip.
Rey
Rey,
Yes, Crystal can make things difficult at times
Check out these documents, maybe some could help: http://support.businessobjects.com/l...s/c2011068.asp http://support.businessobjects.com/l...s/c2015838.asp
Are you developing a Windows or web application?
Regards - Octavio
"Rey" <re********@cox .net> escribió en el mensaje
news:11******** **************@ o13g2000cwo.goo glegroups.com.. . Buenas, Octavio.
Thanks for the tip. Was able to get logged on when I changed the machine.config file as a test. Reset it back, stopped, restarted and even rebooted and was then able to access the mdb w/a quickie rpt...
Now when I attempt to do same but using the push meth via a dataset, I now get "Not a valid account name or password" msg. And this is with your tip and setting same for each tbl of which there is only one being used in the rpt.
CR is leaving a bad taste in my mouth...
Gracias for the tip.
Rey
Howdy.
Accessing "canned" crystal reports to display on a web page.
Unfortunately, Access workspace security is being used. Might require
that rpts be re-written 8-(
Later,
Rey This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Maellic |
last post by:
Hi,
The website I am working on is built with ASP.NET and connects to a
SQL Server 2000 database. The web server and database are on the same
machine. I have recently tried to modify the timeout of the website
from 20 mn to 60 mn. I changed the timeout setting in IIS. Now the
website itself doesn't time out, however after 20 mn, when I try to
access a page that needs to connect to the database, I get the
following error message
|
by: GFro |
last post by:
I am getting the following error since we upgraded from .NET Framework
1.0 to 1.1. The reports all ran fine yesterday.
I get this error in all apps with reports. The apps run fine but the
reports give me the login error.
Any ideas?
|
by: Milan Todorovic |
last post by:
Hello,
I need help. I have experience in ASP.NET programming, but this is my first
dealing with Crystal Reports. I'm trying to make the most basic report
purely for testing purposes: connect to the remote SQL DB and create a
report on one of the tables. Every time I do it, I get the Logon Failed
error (CrystalDecisions.CrystalReports.Engine.LogOnException: Logon failed)
The internet search shows that this is a common problem,...
|
by: John Dalberg |
last post by:
Running Crystal Reports with the hotfixes and patches & VS 2003.
I created a CR report on my development server which has SQL Server. The
report runs fine inside Visual Studio. When I switched the source of the DB
to the production server using the 'set location' option in CR and ran the
app again, I get "Logon Failed" error message. The database wizard worked
fine so this tells me CR was able to connect and retrieve the schema from
the...
|
by: mollyf |
last post by:
I have tried various suggestions that I have found searching the
newsgroups and still haven't been able to figure why I keep getting the
logon failed error.
I created a report in Crystal (not via VS 2003). The data source to
the report is a stored procedure (SQL S2K) that has no parameters. I'm
also using SQL Server authentication to log in.
I added the report to my project (as was suggested recently by someone
in a different...
| |
by: Ben |
last post by:
Hi
We have been developing an intranet using VB .NET displaying crystal
reports.
We repeatedly receive the error below on both the development machine and
the deployment server:
I have read the information on many sites and followed instructions with no
luck, any help would be much appreciated.
|
by: J-T |
last post by:
Hi All,
We have an asp.net application on a windows 2003 server which is part of a
domain controller which my worksatis is too. We have impersonated in our
applciation with a fixed identity account which is also a domain account and
is part of the admininstrator group of the webserver.The application is set
to use NTLM and its application pool's IDENTITY is also set to use that
imperssonated account,when I try to browse the application...
|
by: bonita |
last post by:
I come across the error
"CrystalDecisions.CrystalReports.Engine.LogOnException: Logon failed."
After I move my asp.net code from the development platform (XP
professional) to the production web server (windows 2003 server) by
generating the msi file from the setup and deployment project and
adding the merge modules. The msi file is installed to the windows 2003
server. The installation unzips all the files to the windows 2003
server....
|
by: SAL |
last post by:
Hello,
I'm a total asp.net newbie. I'm developing a web app and on my machine I
login to a sql server just fine using NT Authentication via the connection
string as:
Integrated Security=True
However, when I try to open the .aspx page from another machine I get the
"Login in failed for user NT Authority\Anonymous Logon
|
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
| |
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |