powerpoint doubt

Z

zidansoft

Is there any way to save each shape object as a different file(bmp or
jpg like that)..
from PowerPoint presentation (through automation) ?
thanks
 
S

Steve Rindsberg

Is there any way to save each shape object as a different file(bmp or
jpg like that)..
from PowerPoint presentation (through automation) ?
thanks

You can use the .Export method on shapes as well as on slides.
It's hidden, at least in some versions, so you may need to go into the object
browser, rightclick the main pane and choose Show Hidden Members
 
Z

zidansoft

Thnaks..i have still confusion Export method's parameters,it is
seeing like this
void Export(LPCTSTR PathName, long Filter, long ScaleWidth, long
ScaleHeight, long ExportMode)
{
static BYTE parms[] = VTS_BSTR VTS_I4 VTS_I4 VTS_I4 VTS_I4 ;
InvokeHelper(0x7e2, DISPATCH_METHOD, VT_EMPTY, NULL, parms, PathName,
Filter, ScaleWidth, ScaleHeight, ExportMode);
}


2nd and 5th parameters how to use

thanks
 
S

Steve Rindsberg

Thnaks..i have still confusion Export method's parameters,it is
seeing like this
void Export(LPCTSTR PathName, long Filter, long ScaleWidth, long
ScaleHeight, long ExportMode)
{
static BYTE parms[] = VTS_BSTR VTS_I4 VTS_I4 VTS_I4 VTS_I4 ;
InvokeHelper(0x7e2, DISPATCH_METHOD, VT_EMPTY, NULL, parms, PathName,
Filter, ScaleWidth, ScaleHeight, ExportMode);
}

2nd and 5th parameters how to use

The Object Browser in PowerPoint's VBA IDE will give you this information, but:

Second parameter values:

GIF = 0
JPG = 1
PNG = 2
BMP = 3
WMF = 4
EMF = 5

The fifth parameter takes values from 1 to 4. There's no documentation on the
effect; try different values and let us know what you learn! ;-)
 
Z

zidansoft

Thanks....
I could make out through that way...as i was busy a littile bit
,couldn't test it properly( using effect flag), i will let you know
later




Steve said:
Thnaks..i have still confusion Export method's parameters,it is
seeing like this
void Export(LPCTSTR PathName, long Filter, long ScaleWidth, long
ScaleHeight, long ExportMode)
{
static BYTE parms[] = VTS_BSTR VTS_I4 VTS_I4 VTS_I4 VTS_I4 ;
InvokeHelper(0x7e2, DISPATCH_METHOD, VT_EMPTY, NULL, parms, PathName,
Filter, ScaleWidth, ScaleHeight, ExportMode);
}

2nd and 5th parameters how to use

The Object Browser in PowerPoint's VBA IDE will give you this information, but:

Second parameter values:

GIF = 0> JPG = 1
PNG = 2
BMP = 3
WMF = 4
EMF = 5

The fifth parameter takes values from 1 to 4. There's no documentation on the
effect; try different values and let us know what you learn! ;-)

--
Steve Rindsberg, PPT MVP
PPT FAQ: www.pptfaq.com
PPTools: www.pptools.com
================================================
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top