LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 9
Default How to set a textbox to be a print object

When using Excel 2003, you can right click a textbox, and set it to be a
print object. I'm not sure how to do this in Excel 2007, but my main problem
is to find out how to set this in code? I have the following, but
chart.Shapes.Item(z).ControlFormat.PrintObject is already set to true before
I explicitly set it, so I don't think it's the right spot. I can't see the
text boxes in the print preview in 2003 (but can in 2007).

chart = ((Excel.ChartObject)wsClientPatient.ChartObjects(1 )).Chart;
for (int z = 1; z <= chart.Shapes.Count; z++)
{
chart.Shapes.Item(z).ControlFormat.PrintObject = true;
}
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Passing a TextBox Object clara Excel Programming 1 May 7th 07 09:29 PM
Visual Basic Textbox object Steven Excel Programming 1 September 28th 06 11:50 PM
Can't assign a textbox to object colin.. Excel Programming 4 December 9th 04 03:35 AM
Can't assign a textbox to object colin.. Excel Programming 0 December 8th 04 06:41 PM
Textbox object does not update jay Excel Programming 0 August 1st 03 03:56 AM


All times are GMT +1. The time now is 09:47 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"