473,387 Members | 1,574 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

SQL Authentication in Crystal Report

I have a Crystal Report created by a coworker in Crystal Reports XI. The
report uses an ODBC DSN to connect to the SQL Server database.

I've figured out how to set the various parameters for the report, how to
point the Report Viewer to the .RPT file, etc.

The last step (?) for me is to provide a SQL username and password since the
report prompts for one when it runs.

I've reviewed the documentation online but can't seem to find an answer to
what feels like a pretty simple question.

Here's a bit of the code I'm using so far:
Dim frm As New frmReport
Dim docReport As New ReportDocument
docReport.Load ("{fullpath was long}Price_Comparison.rpt")
docReport.SetParameterValue("Company", "SR")
docReport.SetParameterValue("Branch", "SR")
docReport.SetParameterValue("Show_All", True)

frm.CrystalReportViewer1.ReportSource = docReport
frm.Show()
Apr 19 '07 #1
1 1682
Help? I posted this quite a while ago and haven't received a response. I
expect this is a fairly simple answer that has for some reason eluded me.

"PT" wrote:
I have a Crystal Report created by a coworker in Crystal Reports XI. The
report uses an ODBC DSN to connect to the SQL Server database.

I've figured out how to set the various parameters for the report, how to
point the Report Viewer to the .RPT file, etc.

The last step (?) for me is to provide a SQL username and password since the
report prompts for one when it runs.

I've reviewed the documentation online but can't seem to find an answer to
what feels like a pretty simple question.

Here's a bit of the code I'm using so far:
Dim frm As New frmReport
Dim docReport As New ReportDocument
docReport.Load ("{fullpath was long}Price_Comparison.rpt")
docReport.SetParameterValue("Company", "SR")
docReport.SetParameterValue("Branch", "SR")
docReport.SetParameterValue("Show_All", True)

frm.CrystalReportViewer1.ReportSource = docReport
frm.Show()

May 8 '07 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Stephan | last post by:
Hi, I'm using Visual Studio 2003 (C#) with the integrated Crystal Report software and have the following question: How can I assign a value (string) to an unbound (string) field in Crystal...
13
by: kristoff plasun | last post by:
I have a problem with a C++ DCOM application that prints Crystal Reports with data from Oracle. The SQL query is relatively complex but when the report is printed from the Crystal Reports...
0
by: Dr. Indera | last post by:
hello, i previously posted the questions below on several crystal reports newsgroups, including the one for the company that makes crystal reports, but never got an answer, so i'm hoping that...
2
by: Mythran | last post by:
In .Net, how can I go about and set a Crystal Reports namespace? Right now they use the Root Namespace (VB) from the project. How can I extend the namespace for a single report (which will be set...
1
by: Karthic | last post by:
When i right click on the .rpt file in the VS 2003, i see a property printer setting. It says "No printer" on the top and there is option to select printer and paper settings etc.. I want to...
1
by: bthomas71chevy | last post by:
I have just setup a WebServer and all the applications work fine, but when every any of the applications try to generate a Crystal Report the page errors out. "File or assembly name...
0
by: Vaibhav Shah | last post by:
Hi, Of late, we have been facing a very strange problem in working with crystal report in asp.net the code executes without any exception but as soon as the reportviewer is initialized with...
9
by: Doug | last post by:
Simple question, hoping for a quick answer: Using Visual Studio .NET 2003 and Crystal Reports 10, is it possible to connect to a SQL Server 2000 database using Windows Authentication/Integrated...
11
by: =?Utf-8?B?cmtibmFpcg==?= | last post by:
How can I stop receiving this message while calling a crystal report? "The report you requested requires further information." Thanks
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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
jinu1996
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...

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.