Click here to Skip to main content
15,897,273 members
Home / Discussions / C#
   

C#

 
GeneralRe: getting pic Pin
Mazdak19-Feb-04 7:27
Mazdak19-Feb-04 7:27 
Generalhello Pin
Anonymous19-Feb-04 7:07
Anonymous19-Feb-04 7:07 
GeneralRe: hello Pin
Ass Man19-Feb-04 7:10
Ass Man19-Feb-04 7:10 
GeneralRe: hello Pin
scadaguy19-Feb-04 8:20
scadaguy19-Feb-04 8:20 
GeneralRe: hello Pin
retZ19-Feb-04 8:42
retZ19-Feb-04 8:42 
GeneralRe: hello Pin
Mazdak19-Feb-04 7:22
Mazdak19-Feb-04 7:22 
GeneralRe: hello Pin
Anonymous19-Feb-04 7:27
Anonymous19-Feb-04 7:27 
GeneralSaving the Images/Pictures/OLE objects from PowerPoint Pin
AliIMCIn19-Feb-04 7:02
AliIMCIn19-Feb-04 7:02 
Hi
I have the following code that parses the PowerPoint presentation and saves the listed types of shapes in the IF condition as an image to the disk.
================================================================
if((objShape.Type ==MsoShapeType.msoPicture) ||
(objShape.Type == MsoShapeType.msoOLEControlObject ) ||
(objShape.Type == MsoShapeType.msoChart) ||
(objShape.Type == MsoShapeType.msoDiagram) ||
(objShape.Type == MsoShapeType.msoTable) ||
(objShape.Type == MsoShapeType.msoCanvas) ||
(objShape.Type == MsoShapeType.msoEmbeddedOLEObject) ||
(objShape.Type == MsoShapeType.msoGroup))
{
objShape.Export(FrmDemoApp.ImageFolder + "\\"+objShape.Name+"-test.emf",PowerPoint.PpShapeFormat.ppShapeFormatJPG,Convert.ToInt32(objShape.Width * 2.5),Convert.ToInt32(objShape.Height * 2.5) ,PowerPoint.PpExportMode.ppScaleToFit);
}
================================================================

The problem is while saving the OLE objects are getting saved with a black background. I just want them to be saved as they showup in PowerPoint but not with a Black Background.

Any help or documentation links that I might have missed would be of great help.

Thanks

Mohammed Ali
GeneralRe: Saving the Images/Pictures/OLE objects from PowerPoint Pin
John Fisher19-Feb-04 7:13
John Fisher19-Feb-04 7:13 
GeneralRe: Saving the Images/Pictures/OLE objects from PowerPoint Pin
Heath Stewart19-Feb-04 8:46
protectorHeath Stewart19-Feb-04 8:46 
Generalcom port info Pin
elraton19-Feb-04 6:24
elraton19-Feb-04 6:24 
Generalbring DrawRectangle(...) to front Pin
TweeZz19-Feb-04 3:55
TweeZz19-Feb-04 3:55 
GeneralRe: bring DrawRectangle(...) to front Pin
Heath Stewart19-Feb-04 5:02
protectorHeath Stewart19-Feb-04 5:02 
GeneralRe: bring DrawRectangle(...) to front Pin
John Fisher19-Feb-04 5:05
John Fisher19-Feb-04 5:05 
GeneralRe: bring DrawRectangle(...) to front Pin
John Fisher19-Feb-04 13:26
John Fisher19-Feb-04 13:26 
GeneralRe: bring DrawRectangle(...) to front Pin
TweeZz19-Feb-04 22:03
TweeZz19-Feb-04 22:03 
GeneralGeting system fonts Pin
Itanium19-Feb-04 0:59
Itanium19-Feb-04 0:59 
GeneralRe: Geting system fonts Pin
Nick Parker19-Feb-04 3:12
protectorNick Parker19-Feb-04 3:12 
GeneralLISTVIEW C# Pin
youssef19-Feb-04 0:54
youssef19-Feb-04 0:54 
GeneralRe: LISTVIEW C# Pin
Heath Stewart19-Feb-04 4:52
protectorHeath Stewart19-Feb-04 4:52 
GeneralRe: LISTVIEW C# Pin
Heath Stewart19-Feb-04 10:50
protectorHeath Stewart19-Feb-04 10:50 
GeneralRe: LISTVIEW C# Pin
youssef19-Feb-04 22:14
youssef19-Feb-04 22:14 
GeneralRe: LISTVIEW C# Pin
Heath Stewart20-Feb-04 3:00
protectorHeath Stewart20-Feb-04 3:00 
GeneralRe: LISTVIEW C# Pin
youssef20-Feb-04 6:47
youssef20-Feb-04 6:47 
GenerallistView selection Pin
Snowjim18-Feb-04 22:49
Snowjim18-Feb-04 22:49 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.