
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.