PRINT POWER POINT PPTX PROGRAMITICALLY USING C#

G

Guest

HI,, AM WORKING ON PRINTING POWER POINT SLIDES USING C#, BUT AM GETTING SOME
ERROR AS MT PPTX IS STACKING UP IN PRINTER BUT NOT ABLE TO PRINT, A VIRTUAL
VIEW OF THE CODE IS BELOW,AM EVEN STUCK IN SETTING RULES TO MY POWER POINT
SAYING THEM PROGRAMITICALLY THESE SLIDES CANNOT BE PRINTED, PLEASE DO HELP ME
OUT IN RESOLVING THIS ISSUE,

SUMMARY:
1: PRINTING POWERPOINT FILES USING C#
2:SETTING RULES TO PPTX SLIDES , SAYING FOLLOWING SLIDES CANNOT BE PRINTED,
BOTH TO BE DONE PROGRAMITICALLY

THANK YOU IN ADVANCE







powerpoint.Application apcprint = new powerpoint.ApplicationClass();
powerpoint.Presentations presprint = apcprint.Presentations;
powerpoint.Presentation preprint = null;
preprint = presprint.Open("c:\\a.pptx", officecore.MsoTriState.msoCTrue,
officecore.MsoTriState.msoCTrue, officecore.MsoTriState.msoFalse);
preprint.PrintOptions.PrintInBackground = 0;
preprint.PrintOptions.ActivePrinter = "kyocera.Mita F5-3800 KX";
preprint.PrintOut(1, 4, @"Kyocera.Mita F5-3800
KX",1officecore.MsoTriState.msoFalse);
preprint.Close();
 
S

Steve Rindsberg

All of the new effects in PPT2007 tend to overwhelm printers.

Your code is probably not at fault. Try printing the same presentations
manually ... do they print? If not, then it's not your code.

Try making a very simplified copy of one of the slides that doesn't print ...
remove all of the fancy PPT 2007 formatting effects and try printing it. Then
start adding effects back until you learn which ones cause printing problems.

Those are the ones to watch for when setting rules.
 
G

Guest

ya simple presentations are getting printed,, hey how can i restrict from a
few of those selected slides getting printed
 
S

Steve Rindsberg

ya simple presentations are getting printed,, hey how can i restrict from a
few of those selected slides getting printed

It seems that the printer's already doing that for you.
You send them to print, it doesn't print them. ;-)

But seriously, you'd have to work out what effects cause problems, then analyze
the file looking for those effects.

An alternative might be:

- Export each slide in the file as an image
- Import each image into a new presentation
- Print that instead

For now, you'll be rather limited in this approach, since PPT 2007's image
exports are buggy if you try to export at anything but the default of 960
pixels wide or so.
 

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