Group Fields runtime customization - Web Forms viewer?

From: david (dmcheng1_at_yahoo.com)
Date: 03/29/04


Date: 29 Mar 2004 09:37:55 -0800

Hello. Newbie question here. I am using VS .NET 2003 and the
included Crystal Reports .NET. I have built an ASPX page that
displays a grouping report using the report viewer. I would like the
end-user to be able to choose the grouping field from a dropdown list.

I've tried the sample code in the Crystal Help for .NET and it doesn't
work for me. Does this code only work for report objects and not for
the viewer control?

FieldDefinition FieldDef = new FieldDefinition ();
FieldDef = Report.Database.Tables [0].Fields [comboBox1.Text];
Report.DataDefinition.Groups [0].ConditionField = FieldDef;

I tried the sample code for changing the Selection Formula and that
worked fine, but there were different code sections for viewer control
and report object. Does this mean that the parameter/sort/group field
runtime customizations can't be done in the viewer control? How do I
make this available for end-users, then?

I should say that I am using C#, not VB .NET. (I couldn't find a
newsgroup for C# and Crystal.)

Thanks
David



Relevant Pages

  • Re: Me.image0
    ... Just as per the sample code I gave you simply copy and Paste ... > "Stephen Lebans" ... >> the clsPictureBox object from within the Report at all. ... >> Say you have an Image control named "Image11" in the Report's ...
    (microsoft.public.access.reports)
  • Re: Export to RTF very slow when code is present in Access report.
    ... My previous post in this thread has the sample code. ... Preview the report and everything works fine and fast. ... A breakpoint is placed in the Detail_Format event and it didn't break ... > database or similar database ...
    (microsoft.public.access.reports)
  • Re: Run-time error 13: Type Mismatch
    ... the report, but for each case this was resolved by applying the sample code ... Microsoft Customer Service and Support for a faster resolution. ... That line of text is telling the picture box to load the picture ...
    (microsoft.public.access.reports)
  • Re: Sorting a report by an option button value
    ... Allen Browne has some sample code on setting the sorting dynamically ... > all tying into one field called auditType. ... When I want to print a report ... > I would like to have the report print ascending based on the value of the ...
    (microsoft.public.access.reports)
  • Re: dataset to pass parameters
    ... I'm not sure about sample code. ... Passing the information to your report will depend a little bit on how you ... Bob Holmes MCNGP #31 ... crystal report, or would I have to dump those clicked into a separate text ...
    (microsoft.public.vb.crystal)