473,387 Members | 1,899 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.

CrystalReportViewer filtering problem

I'm writing this post because I need some help. Any insight will be
greatly appreciated. Thank you in advance!

I have a Crystal Report 9 that gets its info from a SQL database. I
installed the RAS in a Win2K server. The report lists from the
database all the invoices. What I'm trying to do and I'm unable it's
to filter the results and only show the one that I want.

I have de following code:
------------------ begining of code ------------
<% Dim ObjectFactory, HTMLViewer
Set ObjectFactory = CreateObject("CrystalReports.ObjectFactory.2")
Set HTMLViewer = ObjectFactory.CreateObject("CrystalReports.Crystal ReportViewer")
With HTMLViewer
..IsOwnPage = true
..IsOwnForm = true
..HasGotoPageButton = false
..HasSearchButton = false
..IsDisplayGroupTree = false
..ReportSource = "invoice.rpt"
End With
call HTMLViewer.ProcessHttpRequest(Request,Response)
HTMLViewer.DatabaseLogOnInfos(0).UserName = "user"
HTMLViewer.DatabaseLogOnInfos(0).Password = "password"
%>
------------------ end of code ------------------------

My problem is that I do not know what object or property to use to
filter the informatión. I've use the following object with the
following filter withing the HTMLViewer properties but I get and error
message:

..RecordSelectionFormula = "{SALES.INVOICE} = '230571'"

DOES ANYBODY KNOW HOW TO ADD A FILTER TO MY REPORT USING THE
HTMLVIEWER that comes with the RAS?

Thank you very much!
Jul 19 '05 #1
0 1660

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

Similar topics

0
by: tjguillo | last post by:
I'm using .NET 2003. This is the first time I've tried to use Crystal within .NET. I'm connecting to an Oracle database. I'm using System.Data.OracleClient, dll v1.1.4322. I can connect to the...
0
by: Cuperman | last post by:
Hi All, I am pretty new to Crystal coding and trying to enhance a report that we have created in .Net I have a CrystalReportViewer control which loads a report from Cache memory. This all...
1
by: Jordan | last post by:
Hi, I've declared the statement below in my form and somehow crystalReportViewer1 is always null. Is there anything wrong with the statement? private...
2
by: suicidaltendencies | last post by:
Does anyone know how to fix this problem. I'm trying to create some Crystal Reports Thanks Harol Compilation Error Description: An error occurred during the compilation of a resource required...
3
by: Reza Nabi | last post by:
Hello I created a very simple page just to load a crystal report which was working just great Code started throwing the following exception, after I installed crystal report 9 advanced edition ...
1
by: Bob | last post by:
I'm asking here because I've posted this question in the crystal newsgroup, waited two weeks, and got zero response. I would be very appreciative if someone could shed some light on this problem...
3
by: roopsd | last post by:
I am using VS.NET 2003 with crystal reports XI release 2. I get a runtime error at the following line: oRptForm.crystalReportViewer.ReportSource = oReport An unhandled exception of type...
0
by: roopsd | last post by:
Hi Thank you for yuour help. I am using VS.NET 2003 with Crystal XI r2. I am getting NullReferenceException at the following line in my code. oRptForm.crystalReportViewer.ReportSource =...
0
by: fahmi06 | last post by:
I want to filter records of the table "Customers" in sqlserver2000 in order to print a letter of "happybirthday" to the customers who have their birthday in the current day. the source of the...
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: 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
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...
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:
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
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,...

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.