Problem with slide Export

S

SV

Shyam Pillai's site http://skp.mvps.org/ppt00036.htm shows how to
export a presentation as slides. This works really well as long as
the format is JPG. As soon as I change it to PPT I get a problem.

The file type .ppt is registered (double click on a ppt opens the
file).

Is there some other trick?

Steve
 
S

SV

I really expressed myself badly - sorry!

If I use the code almost 'as-is' from Shyam's site then the code
doesn't run. I get a nice message from MS saying "PPT has encountered
a problem and needs to close ..."

Shyam's code reads ...
sFilename = (sSlideOutputFolder) & "Slide" & Format(oSld.SlideIndex,
"000") & ".ppt"
oSld.Export sFilename, "PPT"

My code reads ...
oExportedFileName = "C:\Home\Extract\" & oSlidetitle & "-" & Format
(CheckSum, "000") & "-" & sFilename
oSlide.Export oExportedFileName, "PPT"

(sFilename includes .ppt)

If I change the output file type to JPG it runs and produces a neat
set of JPG files one per slide. So I assume that is something to do
with the export to file type "PPT".

In the help file entry for the Export method it says that "The
specific graphics format must have an export filter registered in the
Windows registry". I assumed that if I double-click on a PPT file and
it opens that the file type is registered.

Perhaps this last assumption is wrong? Is there something else I have
to do to activeate an "export filter " (whatever that is).

Does this make more sense?

Steve
 
M

Matti Vuori

SV said:
In the help file entry for the Export method it says that "The
specific graphics format must have an export filter registered in the
Windows registry". I assumed that if I double-click on a PPT file and
it opens that the file type is registered.

Perhaps this last assumption is wrong? Is there something else I have
to do to activeate an "export filter " (whatever that is).

Does this make more sense?

Yes. Graphics formats are the ones used for images, drawings, photographs:
jpf, gif, wmf etc... PPT is not a graphics format, but a document format.
You cannot use PPT format for export.
 
S

SV

I have now tried a different solution of opening a new file and import
file X from the original file.

This is a bit clunky but works.

I will try the export function again when I get PPT07 later this year.

Thanks for your help

Steve
 
S

SV

Now for a little feedback...

Steve R, I didn't know how to set about coding your suggestion in the
last post so I simply carried on with the "opening a new file and
import
file X from the original file" solution ... but then reapplied the
template from the original file. This seems to work ok.

I also tried the slide export again now that I have PPT'07. Still no
luck!

This is all part of a project to look at presentation quality and fits
together with my question that I posted a question at ...

http://groups.google.com/group/microsoft.public.powerpoint/browse_thread/thread/2ff3d9e8a9bc24c5

With some help from http://www.pptfaq.com/FAQ00751.htm I have extended
this to list the template, author but also the font used. At this
point I started to understand the impact of double-byte fonts. Sure
enough some presentations contained up to 15 fonts some of which were
asian and others just plain double-byte fonts.

When I run my 'list fonts' macro on the results of the 'split
presentation into single slide' macro I was expecting to be able to
identify which slide contains the rogue fonts.

To my surprise the rogue fonts appear to have all disappeared and all
that remains are the truly visible (WYSIWYG) fonts. I suspect that
some of the fonts in the original files were part of text items that
were later deleted but left some kind of reference to the font (and on
occasions embedded fonts) - an empty "container". This reference
appear to be viral and get passed around with the slide.

If I am right this could make an interesting alternative to the 'save
as HTML' method to deleting double-byte font referencess. It will not
of course delete the visible double-byte fonts which might be
genuinely needed.

So now I have a set of slides where I can see the size, the last
author plus a whole bunch of parameters that tell me who makes 'dirty'
slides. Amongst the slides is a rather spendid 17MB single slide!

***************

I have spotted a behavior amongst authors which is particularly
heavy. This is a cut-and-paste from MS PhotoEditor to a ppt slide.
This shows up in the PPT file properties under the 'contents' tab
as@ OLE.add-in PhotoEditor@ (or something like that - I don't have an
example to hand). Even NxPowerLite doesn't seem to tackle this.

Is there a technique like you show in http://www.pptfaq.com/FAQ00751.htm
that would flag-up this type of content. I am trying to find a way
of spotting a 'rogue' slide from a directory of presentations.

The idea is that if I can spot authors who have bad ppt habits then
perhaps I can persuade them to change their ways.

Thanks

Steve



..
 

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