tell crystal what to do in vb.net 
Author Message
 tell crystal what to do in vb.net

I use Crystal Reports in the Visual Studio.NET environment and I badly need
this question answered. It has not been answered in any ng I have posted it
too and I bought a book called "Professional Crystal Reports for Visual
Studio.NET" which does not have the answers either.

I have a vb.net windows app that uses a datagrid and report view which the
user can toggle back and forth between with the use of a checkbox. In
datagrid view I can add or remove columns with this code:

If CheckBox2.Checked = False Then

Dsjjkp1.Tables("JJKSUP").Columns.Remove("Description")

End If

If CheckBox2.Checked = True Then

Dsjjkp1.Tables("JJKSUP").Columns.IndexOf("Description")

How can I tell Crystal to remove/add this column and reformat in vb.net
depending on the what checkboxes are selected? Right now it still produces
the column though it is empty which looks very bad. I have gone everywhere
else and no one answers this question....

Thank you.



Wed, 06 Jul 2005 04:51:59 GMT  
 tell crystal what to do in vb.net
You can't tell CR to reformat. You could hide the column but there is still
a gap in your report. The other option is to change the binding of each
column so that you shift each field to the left and then hide the very last
column. Those are a couple options.

--
A Crystal Reports.NET book for programmers? Its free!
* 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 examples for every concept presented

www.CrystalReportsBook.com/rdr.asp?cpgn=ngcr_011503


Quote:
> I use Crystal Reports in the Visual Studio.NET environment and I badly
need
> this question answered. It has not been answered in any ng I have posted
it
> too and I bought a book called "Professional Crystal Reports for Visual
> Studio.NET" which does not have the answers either.

> I have a vb.net windows app that uses a datagrid and report view which the
> user can toggle back and forth between with the use of a checkbox. In
> datagrid view I can add or remove columns with this code:

> If CheckBox2.Checked = False Then

> Dsjjkp1.Tables("JJKSUP").Columns.Remove("Description")

> End If

> If CheckBox2.Checked = True Then

> Dsjjkp1.Tables("JJKSUP").Columns.IndexOf("Description")

> How can I tell Crystal to remove/add this column and reformat in vb.net
> depending on the what checkboxes are selected? Right now it still produces
> the column though it is empty which looks very bad. I have gone everywhere
> else and no one answers this question....

> Thank you.



Wed, 06 Jul 2005 13:03:15 GMT  
 tell crystal what to do in vb.net
In Crystal Reports 9, you can use the ResultFieldController in
CrystalDecisions.ReportAppServer.ClientDoc.ReportClientDocument to remove a
field from the result field list.

Thanks,

Francis


Quote:
> You can't tell CR to reformat. You could hide the column but there is
still
> a gap in your report. The other option is to change the binding of each
> column so that you shift each field to the left and then hide the very
last
> column. Those are a couple options.

> --
> A Crystal Reports.NET book for programmers? Its free!
> * 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 examples for every concept presented

> www.CrystalReportsBook.com/rdr.asp?cpgn=ngcr_011503



> > I use Crystal Reports in the Visual Studio.NET environment and I badly
> need
> > this question answered. It has not been answered in any ng I have posted
> it
> > too and I bought a book called "Professional Crystal Reports for Visual
> > Studio.NET" which does not have the answers either.

> > I have a vb.net windows app that uses a datagrid and report view which
the
> > user can toggle back and forth between with the use of a checkbox. In
> > datagrid view I can add or remove columns with this code:

> > If CheckBox2.Checked = False Then

> > Dsjjkp1.Tables("JJKSUP").Columns.Remove("Description")

> > End If

> > If CheckBox2.Checked = True Then

> > Dsjjkp1.Tables("JJKSUP").Columns.IndexOf("Description")

> > How can I tell Crystal to remove/add this column and reformat in vb.net
> > depending on the what checkboxes are selected? Right now it still
produces
> > the column though it is empty which looks very bad. I have gone
everywhere
> > else and no one answers this question....

> > Thank you.



Fri, 08 Jul 2005 15:00:29 GMT  
 tell crystal what to do in vb.net

Thank you both for your responses.
How would one go about using the technique you mentioned? Can it be called
in vb.net?


Quote:
> In Crystal Reports 9, you can use the ResultFieldController in
> CrystalDecisions.ReportAppServer.ClientDoc.ReportClientDocument to remove
a
> field from the result field list.

> Thanks,

> Francis



> > You can't tell CR to reformat. You could hide the column but there is
> still
> > a gap in your report. The other option is to change the binding of each
> > column so that you shift each field to the left and then hide the very
> last
> > column. Those are a couple options.

> > --
> > A Crystal Reports.NET book for programmers? Its free!
> > * 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 examples for every concept presented

> > www.CrystalReportsBook.com/rdr.asp?cpgn=ngcr_011503



> > > I use Crystal Reports in the Visual Studio.NET environment and I badly
> > need
> > > this question answered. It has not been answered in any ng I have
posted
> > it
> > > too and I bought a book called "Professional Crystal Reports for
Visual
> > > Studio.NET" which does not have the answers either.

> > > I have a vb.net windows app that uses a datagrid and report view which
> the
> > > user can toggle back and forth between with the use of a checkbox. In
> > > datagrid view I can add or remove columns with this code:

> > > If CheckBox2.Checked = False Then

> > > Dsjjkp1.Tables("JJKSUP").Columns.Remove("Description")

> > > End If

> > > If CheckBox2.Checked = True Then

> > > Dsjjkp1.Tables("JJKSUP").Columns.IndexOf("Description")

> > > How can I tell Crystal to remove/add this column and reformat in
vb.net
> > > depending on the what checkboxes are selected? Right now it still
> produces
> > > the column though it is empty which looks very bad. I have gone
> everywhere
> > > else and no one answers this question....

> > > Thank you.



Fri, 08 Jul 2005 22:56:06 GMT  
 
 [ 4 post ] 

 Relevant Pages 

1. Crystal Reports 8.5 (VB6) to Crystal Reports NET (VB.NET) conversion

2. Tell me you experience in convert code from VB 6 to VB.NET or C#

3. Sorting fiels in Crystal .NET by code VB .NET

4. i am using vb.net and crystal reports for visual studio.net

5. SetDataSource not working with Crystal Reports .NET in VB.NET

6. vb .net crystal reports not compatible with Crystal Reports 8.5

7. Error in temp file in running crystal report for .net in vb.net

8. Crystal Reports from ASP.NET without compiling VB.NET on SQL/ADO changes

9. vb.net with crystal.net

10. Adding or Suppressing Top N Sort in Crystal.Net and VB.net

11. VB.net and crystal reports.net Multiple reports

12. Crystal Rpts and VB.NET/ASP.NET App ?

 

 
Powered by phpBB® Forum Software