Re: Group Fields runtime customization - Web Forms viewer?
From: david (dmcheng1_at_yahoo.com)
Date: 03/30/04
- Next message: pjm_at_see_my_sig_for_address.com: "Re: exporting report fails on Windows 2003"
- Previous message: Vlad: "Re: Subreport slows down"
- In reply to: Brian Bischof: "Re: Group Fields runtime customization - Web Forms viewer?"
- Next in thread: Brian Bischof: "Re: Group Fields runtime customization - Web Forms viewer?"
- Reply: Brian Bischof: "Re: Group Fields runtime customization - Web Forms viewer?"
- Messages sorted by: [ date ] [ thread ]
Date: 30 Mar 2004 08:32:15 -0800
Hi Brian, thanks for your reply. Can you give me some sample code
that shows how to display and modify report objects on an ASPX page?
Every example that I have on Crystal Reports and .NET uses the report
viewer, so I don't understand how to proceed with just the report
object.
Thanks
David
"Brian Bischof" <BrianNoSpam@BischofSystems.com> wrote in message news:<eyOIcLdFEHA.3980@TK2MSFTNGP12.phx.gbl>...
> Hey David,
>
> You are correct that your code only works for the report object. The
> viewer control is extremely limited in its functionality and you would be
> best not using it at all. The code you posted is fine. However, if you are
> making runtime changes with both the viewer and the report object, this is
> not supported. You can only do modifications with one object at a time.
> Thus, another reason to only use the report object.
>
> If you are going to be doing runtime customization of your reports, you
> should check out my book. It tells you everything you need to know and gives
> examples in both C# and VB.NET.
>
> HTH,
>
> Brian Bischof
>
> A Crystal Reports.NET book for programmers? Its here!
> * Covers ASP.NET and Windows Forms
> * Teaches all phases of report development
> * Alerts you to the bugs and how to get around them
> * Maps out the complex ReportDocument object model
> * Shows how to perform runtime customization
> * Demonstrates all options of connecting with ADO.NET
> * Gives complete code listings for every concept presented
>
> http://www.crystalreportsbook.com/123aspx.asp
>
>
>
> "david" <dmcheng1@yahoo.com> wrote in message
> news:d3144414.0403290937.457f5faf@posting.google.com...
> > 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
- Next message: pjm_at_see_my_sig_for_address.com: "Re: exporting report fails on Windows 2003"
- Previous message: Vlad: "Re: Subreport slows down"
- In reply to: Brian Bischof: "Re: Group Fields runtime customization - Web Forms viewer?"
- Next in thread: Brian Bischof: "Re: Group Fields runtime customization - Web Forms viewer?"
- Reply: Brian Bischof: "Re: Group Fields runtime customization - Web Forms viewer?"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|