|
-
April 5th, 2004, 11:08 AM
#1
pass filter to cristal report
hi,
I'm using Borland's C++ Builder and InfoPower Components,
i need to passa the result of an execution of a filter dialog to a Cristal report,
better, i want to print, the dataset of a grid, based on a filter,
the fields displayed are the same ... just the filter change
how can i do this, at run time ??
thank's in advance
need awnser as fast as you can, urgent!!!
-
April 29th, 2004, 05:42 AM
#2
Hi ,
I am trying for VB you try it out to ur code.
Use
CrystalReportViewerSL.SelectionFormula = Your Filter condition
Before preview the report.
eg.
Dim StrStoreValue As String
StrStoreValue = "STORE1"
CrystalReportViewerSL.SelectionFormula = = "{STOCK_LEDGER.STORE_CODE} = '" & StrStoreValue & "'"
It woll give the filtered output.
Thanks
Vilas
-
April 29th, 2004, 11:17 AM
#3
i solve it other way
i can convert the result of the query in a string tha i just
(the string needs to be in crystal syntax ... )
Code:
CrpeReports->Selection->Formula->Clear();
CrpeReports->Selection->Formula->SetText(filtro.c_str());
as it is the only formula i need ... it works well ...
but thanks anyway
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|