Wrox Programmer Forums
Go Back   Wrox Programmer Forums > .NET > Other .NET > Crystal Reports
|
Crystal Reports General discussion about Crystal Reports. For discussions specific to the book Professional Crystal Reports for VS.NET, please see the book discussion forum for that book.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Crystal Reports section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old January 8th, 2007, 10:57 PM
Registered User
 
Join Date: Jan 2007
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Hiding Report Columns

We dont want to show some columns on the report based on user input. We are doing this by suppressing the columns based on the condition, but it creates a blank column space on the report. How do I get rid of that blank space at run time ?

Even while exporting to Excel (in data only mode), it does not delete that blank column space.



 
Old February 9th, 2007, 04:38 AM
Registered User
 
Join Date: Dec 2006
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to nagham
Default

well I did this by a long method,I'll give u a hint...try to work on the width and left of the field,put the width of the column u want to hide =0 and try to decale all the field beside it by the left...u have tu use a SortedList where u put the columns...and u haveto use this syntax
SortedList.Add(RepDoc.ReportDefinition.ReportObjec ts(i).Left, RepDoc.ReportDefinition.ReportObjects(i).Name)
and
CType(RepDoc.ReportDefinition.ReportObjects(Column Hide,CrystalDecisions.CrystalReports.Engine.TextOb ject).Width= 0


nagham





Similar Threads
Thread Thread Starter Forum Replies Last Post
Hiding Listview Columns? jakeone Beginning VB 6 12 October 2nd, 2008 03:52 PM
Trouble hiding and unhiding columns in VBA jtmelb Excel VBA 0 February 14th, 2007 07:04 PM
Hiding the report from users grobbo61 Access VBA 1 June 26th, 2006 11:41 AM
hiding / unhiding columns in datagrid drachx General .NET 9 October 18th, 2004 02:37 AM
Dynamically Hiding Columns r_ganesh76 Crystal Reports 1 September 23rd, 2004 11:18 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.