BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Hiding columns

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Databases (ADO)
View previous topic :: View next topic  
Author Message
Brad Prendergast
Guest





PostPosted: Mon Nov 28, 2005 1:20 pm    Post subject: Re: Hiding columns Reply with quote



Aragorn <warcayac (AT) yahoo (DOT) com> wrote in message
<438b102c$1 (AT) newsgroups (DOT) borland.com>:

Quote:
Hi dudes,

My app is using TExcelApplication, TExcelWorkBook and TExcelWorkSheet
components, I'm trying to hide certains columns in some worksheets
before saving them into a spreedsheet, my request is to get some help
for realizing this because this code doesnt work apparently:

procedure TSendForm.HideColumnsIn(Sheet: TExcelWorksheet);
begin
Sheet.Columns[1].Visible:= False;
end;

Delphi (7 Enterprise) raises a error message after setting
"Sheet.Columns[1]." statement.

Regards

Aragorn

Excelworksheet1.Cells.Item[r,c].EntireColumn.Hidden:= True;

--
Brad Prendergast
"The only difference between me and a madman is that I'm not mad." --
Salvador Dali (1904 - 1989)

Back to top
Aragorn
Guest





PostPosted: Mon Nov 28, 2005 2:18 pm    Post subject: Hiding columns Reply with quote



Hi dudes,

My app is using TExcelApplication, TExcelWorkBook and TExcelWorkSheet
components, I'm trying to hide certains columns in some worksheets before
saving them into a spreedsheet, my request is to get some help for realizing
this because this code doesnt work apparently:

procedure TSendForm.HideColumnsIn(Sheet: TExcelWorksheet);
begin
Sheet.Columns[1].Visible:= False;
end;

Delphi (7 Enterprise) raises a error message after setting
"Sheet.Columns[1]." statement.

Regards

Aragorn


Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Databases (ADO) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.