473,396 Members | 1,816 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,396 software developers and data experts.

SQL selection with Crystal Report

Using VS2005 / MSSQL Server 2000 / Crystal 8.5 and Crystal .NET

How can I programmatically change the "SQL Where clause" of a ReportDocument
?

Example ( Id' like something like this ) :
MyReportDocument.SQLSelectionFormula = "(ID_PAYS IN (SELECT ID_PAYS FROM
CUSTOMERS))";

(or something like this) :

MyReportDocument.RecordSelectionFormula = " USESQL (ID_PAYS IN (SELECT
ID_PAYS FROM CUSTOMERS))";
PS: I don't want (and Can't) use .NET report based on .NET Datasets.

Thanks for any help !
Steph.
Sep 18 '06 #1
1 1613
Hi,

"TheSteph" <Th******@NoSpam.comwrote in message
news:uF**************@TK2MSFTNGP05.phx.gbl...
Using VS2005 / MSSQL Server 2000 / Crystal 8.5 and Crystal .NET

How can I programmatically change the "SQL Where clause" of a
ReportDocument
I was going to suggest you to use Dataset when I saw your PS :)

IIRC you cannot modify the report through code. This is one limitation of
the version shipped with .NET
Now, I haven;t tried to modify (or even understand it) the code generated by
CR ( CR does generate a new class with the same name of the report)

You could try to see what it contains.
--
--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation
Sep 18 '06 #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...
1
by: RedZebra | last post by:
Hi I am calling and viewing Crystal Reports in internet explorer(using ASP pages) by passing them the selection formula for the main report. Its working fine. The problem is when the report has...
1
by: Reny J Joseph Thuthikattu | last post by:
Hi, I want to create a a crystal report based on the DAteTime Range.Can any one tell me how do i pass the Values from the VB.NET.I am uasing Crystalreportviewer control My field is isin the...
7
by: Helen | last post by:
vb .net 200 crystal reports Oracl Acces Hi, I have all selection formula results needed from the main crystal report, called in the vb form (Oracle db) I now need to build in the logic in...
3
by: blackdevil1979 | last post by:
Hi, Just curious, can the crystal report show (during report view and in the printed report) different background colour for alternate rows? For example: 1 row background colour =silver 2...
0
by: Jasper Jones | last post by:
I have a Crystal report that shows me a list of sales and which customer bought them, I would like to get a distinct list of customers, is this possible with crystal's formulas? This is my...
0
by: zafar | last post by:
I need to Use selection formula for crystal report (user may give 1,2,3 ... or more criteria for report) what is the syntax for that. secondly how to use "views" in crystal report . Thanx if any...
0
by: mehtaprashant19 | last post by:
i have a problem with Crystal Report, i am giving a SelectionFormula to the Crystal Report Viewer, but it is giving me all the records If Session("Rep") Is Nothing Then Dim...
1
by: annemariearmour | last post by:
I am using Crystal reports version 11.2 to create reports. The data source is SQL Server, and I am using views rather than reporting directly from tables. I apply selection criteria to the incoming...
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:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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
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,...

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.