View Single Post
  #1 (permalink)  
Old October 22nd, 2012, 06:45 AM
rangeshram rangeshram is offline
Authorized User
Points: 145, Level: 2
Points: 145, Level: 2 Points: 145, Level: 2 Points: 145, Level: 2
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: May 2008
Location: India
Posts: 31
Thanks: 6
Thanked 0 Times in 0 Posts
Send a message via Yahoo to rangeshram
Thumbs up VBA CSS Creation

Hi,

We need to process the word document and generate CSS file which used for ePub creation. Please give your thoughts for the two methods used to generate CSS.

Method 1: Process through WordML (my colleague suggestion)

Method 2
: Read character by characer and based on the Word Object Model generate CSS .

For example: margin-top: 1em will be set based on Word paragraph space before

class1
{

font-size:100%;
margin-top:1em;
margin-bottom:0em;
border-bottom:5px solid #33339a;
margin-left:0em;
font-weight:normal;
text-align:left;
text-indent:0em;
}


Please tell about the pros and cons for the above two methods. And also specify which is the best and effective.

Note: We have also google and found that "http://www.oocities.org/w2css/" is helpful but can't able to download.

Thanks,
Ram