Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 6
Default Embedded Excel worksheet's size changed after double-clicking in P

Hi there,

Currently we are programmatically copy/pasting something(grid, live
chart) from Excel into PowerPoint as an embedded workbook and we modify the
original size so that the pasted result will be appropriate to be placed into
PowerPoint.

We have achieved the functionality as above, but we meet some problems
when user double clicking on that embedded excel worksheet. After double
clicking , the user return to the slide, we find that the "embedded
worksheet" size changed.

Some conditions required for this problem to happen:
1. This only happens in Office 2007.(Excel 2007, PowerPoint 2007).
2. This only happens when want to embed a "live chart" into PowerPoint
slide, but there is no such problem for embedding a "grid".

We create the "Live Chart€¯ and manipulates its size by the code below:

Excel.Chart _chart =
(Excel.Chart)_workbook.Charts.Add(_missing, _missing, _missing, _missing);
_chart.PageSetup.ChartSize =
Microsoft.Office.Interop.Excel.XlObjectSize.xlScre enSize;
_chart.ChartArea.Width = width; // Specified width
_chart.ChartArea.Height = height; // Specified height

The "paste" code is below:

_app.Selection.Range.PasteSpecial(ref missing, ref link, ref placement, ref
displayAsIcon, ref dataType, ref missing, ref missing);

The data type is "OleObject".

Can anyone help on this problem? Thanks!

Reply
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
Opening an Excel worksheet by double-clicking the filename Mike Reemsnyder Excel Discussion (Misc queries) 3 October 15th 09 06:30 PM
Can only open files from in Excel, not from double clicking on the Keven Excel Discussion (Misc queries) 6 May 15th 09 11:37 PM
Opening Excel by double-clicking a file doesn't work! Dan Levin Excel Discussion (Misc queries) 4 April 1st 08 07:12 PM
Excel do not open the files when double clicking Alfonso Torres Excel Discussion (Misc queries) 1 April 20th 07 08:59 PM
Openning Excel by double clicking on the file name in Explorer Joseph Excel Discussion (Misc queries) 2 July 1st 05 04:17 PM


All times are GMT +1. The time now is 10:17 PM.

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

About Us

"It's about Microsoft Excel"