How do I change the default css in Powerpoint?

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have an application that use OLE to dynamically save office documents as
HTML files. The html that is generated contains <STYLE> tags in which I need
to change the default css for the .sld element to resize the slide to print
on a sheet of A4, it is currently set to {left:0px !important;
width:6.0in !important;
height:4.15in !important;
font-size:103% !important;}
which is too small.

Does anyone know if this is possible, and if so, where can I change it
 
Neal wilkinson said:
I have an application that use OLE to dynamically save office documents as
HTML files. The html that is generated contains <STYLE> tags in which I need
to change the default css for the .sld element to resize the slide to print
on a sheet of A4, it is currently set to {left:0px !important;
width:6.0in !important;
height:4.15in !important;
font-size:103% !important;}
which is too small.

Does anyone know if this is possible, and if so, where can I change it

Not offhand, but there'll be a .css file generated for the entire presentation;
perhaps changing that will be enough.

If the original css code is consistent (that is, the identical code always
appears in it, whether in the css file or in individual slide html files), it
should be simple enough to read the generated file, search for and replace the
target text.
 
Unfortunatly Steve, I dont think it will be consistant. The code I posted
was from a single file presentation, however I know there will be multiple
slide presentations which the agent will be converting.

I dont think it will be feasable to search through each of the html files
generated by the system, as the code performing this is on a schedule with a
limited time-frame to complete the work. Ideally I would like an option
which I can pass vai COM to disable the style part of the generated HTML, but
still keep all of the additional XML/Javascript etc that is generated.
 
Neal wilkinson said:
Unfortunatly Steve, I dont think it will be consistant. The code I posted
was from a single file presentation, however I know there will be multiple
slide presentations which the agent will be converting.

I dont think it will be feasable to search through each of the html files
generated by the system, as the code performing this is on a schedule with a
limited time-frame to complete the work. Ideally I would like an option
which I can pass vai COM to disable the style part of the generated HTML, but
still keep all of the additional XML/Javascript etc that is generated.

Heading it off at the pass would certainly be simpler than cleaning up the results
afterward, but I don't know a way of doing it. With luck, someone else will.

What kind of time limitation are you under and how many files are involved at a
time? Searching a limited number of smallish text files can be fairly quick.
Quick searches won't matter if there's no way to be sure of what you're searching
for, of course, but are you certain it's not consistent?
 
I have just had a look at what is produced for a single slide conversion fil
ein the application and there are seven files (not including the graphics
files - this pushes it up to 29 including the original) and the naming
convention is random to say the least. The agent is limited to a 30 minute
completion time and runs on a 45 minute schedule. As for the number of files
it converts, it could have one one in the queue, or it could have 100 - I
would never know as the application runs at remote sites to which I do not
always have access, if it does not complete, it starts again at the top of
the list when next it runs.

I think for the moment, I am going to have to suggest they convert these
particular file to pdf to get over the problem they are having, untile I can
come up with a solution - Thanks for your help though
 
Back
Top