473,396 Members | 1,726 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.

Question about data filtering in Crystal Report (Continue)

Ray
Dear Bernie,
Yes, if the same pfieldname is used. The same data will be filtered. But
I only use the code shown you before. I have not used any dataset or
datatable. How to fix the problem?
Thanks a lot,
Ray
"Bernie Yaeger" <be*****@cherwellinc.com> ¦b¶l¥ó
news:eg**************@TK2MSFTNGP15.phx.gbl ¤¤¼¶¼g...
Hi Ray,

No, the code looks fine.

Does the report use a physical table, a view, an sp or a dataset to report. I understand your point about it having been already filtered - that could
only happen, I think (since the report is closed and then again opened), if the report is using a dataset/datatable as its source.

Try this: in the second pass, use the same pfieldname; if it works, then you are correct and the data is filtered and has remained filtered. But that
would mean that the report is using a dataset/datatable. Once we know this, we should be able to fix it.

Bernie

"Ray" <so*****@microsoft.com> wrote in message
news:Ow**************@tk2msftngp13.phx.gbl...
Dear Bernie,
I use the text box to input the data name should be filtered and then
pass to the ReportDocument.
So I use the same code in the second time also. For the first time, I
call the report by input a data name to the text box while running the
program, then I close the report, then I input another data name to the
text
box and call the report again. For this time, the necessary data cannot be filtered out.
It seems that the report's data has been filtered to the data in the first time, and since the data in the second time is not within the data in the first time, so the data in the second time cannot be filtered out.
Is there any problems for my code?
Thanks a lot,
Ray

"Bernie Yaeger" <be*****@cherwellinc.com> ¦b¶l¥ó
news:eE**************@TK2MSFTNGP09.phx.gbl ¤¤¼¶¼g...
Hi Ray,

OK, looked at the code. When you call the report the second time, what
is
the value of pfieldname and what code calls the report? It must be
different code, because if you called this code again, pfieldname would

have
to be the same (ie, abc).

Bernie

"Ray" <so*****@microsoft.com> wrote in message
news:ud**************@TK2MSFTNGP11.phx.gbl...
> Hi all,
> While I use the ReportDocument of vb.net to set filter to the data to > the
> Crystal Report, it is successful for the first time while running the
> program. However, for the second time while running the program, when I > set
> filter to other set of data, all the data is lost.
>
> Please help.
> Thanks a lot,
> Ray
>
>





Nov 21 '05 #1
0 1360

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

Similar topics

4
by: Grant Stanley | last post by:
I'm developing an application in VS.Net 2003 using C#, which uses Crystal Reports. When creating each report, crystal asks where the database to use is, so I specify our SQL server using the ADO...
7
by: AMeador | last post by:
I have, at one point in time, been a pretty good programmer, but that was years ago. I can pass programming classes with and A with no problem, but writting a business class application is a bit of...
3
by: Diggler | last post by:
I was working on a report that is populated with three different tables in a strongly-typed dataset. The tables are populated from custom objects rather than directly from SQL Server. I loop...
0
by: Ray | last post by:
Hi all, While I use the ReportDocument of vb.net to set filter to the data to the Crystal Report, it is successful for the first time. However, for the second time, when I set filter to other set...
6
by: Ray | last post by:
Hi all, While I use the ReportDocument of vb.net to set filter to the data to the Crystal Report, it is successful for the first time while running the program. However, for the second time while...
3
by: Chubbly Geezer | last post by:
I'm using a particular font (for credit card symbols) within a crystal report which looks fine when I preview, however when I run the report with real data, the font is now shown correctly. It...
0
by: Sheryl 37 | last post by:
Can any1 give me the coding for the following problem.....How to i filter data in Crystal Report using a combo option (e.g Company Name). There1 combo box for the Company, and a crystal report....
1
by: narpet | last post by:
Hello all... I have a C# forms application that I am developing using MS Visual Studio 2005. I am trying to add some Crystal Reports to this application using the built in Crystal Reports tools...
3
by: Brock | last post by:
I am trying to populate a Crystal Report from data in my DataGrid. The reason for this is that I want the user to be able to change values without updating the database, but still have their...
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: 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
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
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.