Solved

Custom style sets

Posted on 2010-09-01
8
609 Views
Last Modified: 2012-06-27
Hi everyone,

I wanted to make use of Word 2007 style sets, so I've created a set of custom styles in a template. I named each of the styles with a unique name and added them to the style gallery, then made a style set.

I wanted to make it as easy as possible for the end user of the template to format the document so instead of having to click on the custom style names that I created, I tried to go through and match my custom styles with the corresponding inbuilt style used by Word. For example, Word's h1 heading was matched to my custom h1 heading, so that the user can just click on h1 in the style gallery and it will be styled according to the attributes that I set for the custom style. This works for h1 but I'm having problems with a couple of others.

Instead of clicking on a custom bullet style, it would be easier for the user to just click the bullet menu. I created a blank document and after typing in some sample text and applying the default bullets from the the normal template, I looked in the styles pane and saw that this default bullet was given a style of "List style". Since this was the case, back in my template document I matched my custom style to this inbuilt style. When I tested though, the bullet character did match my custom style but the hanging indent was not the same. I don't understand why it didn't match it completely. After I had matched the style, I checked the style definition for the inbuilt style and it said that it was based on my style but it still retained some of it's own definition. I'm not sure why I can't get it to match so that pressing the bullet list will always produce a list style according my unique style.

A similar thing is happening with list numbering. As with the bullets, I created a custom style, then I matched it with the "List paragraph" style which apparently is the style that is being used for the default numbering list. When I tested, I get the green coloured number however the indent is totally out and doesn't match my own.

This is the first time I've used Word 2007 to create complex style sets so I can't be sure whether I'm going about it the right way. Although as mentioned it does work with the heading styles so maybe something extra needs to be done to get the bullets and numbering working correctly.

Would really appreciate any help.
0
Comment
Question by:gwh2
  • 4
  • 4
8 Comments
 
LVL 31

Expert Comment

by:Paul Sauvé
ID: 33583300
Generally, you should be able to modify Word`s styles to correspond to your needs. That way, you keep the same style names as the notmal.dotx file, but with your modifications.
But I, too, have had problems with the bullet and numbered lists. Try incremental changes when doing this and you may see at what step the error occurs.
The trick is to create a new document model and distribute this .dotx or .dotm model for creating new documents.
0
 
LVL 1

Author Comment

by:gwh2
ID: 33584575
Thanks for the reply,

How do you create a new document model?
0
 
LVL 1

Author Comment

by:gwh2
ID: 33584613
Also just one other question if that's ok: I have a heading style whereby the paragraph is shaded a colour. If this heading falls at the bottom of a column and I want to push it to the top of the next column, I insert a column break. This relocates the paragraph but it also leaves the shading colour at the bottom of the previous column.

If instead I insert the column break at the end of the previous paragraph which is styled with body text, then there's a blank paragraph at the top of column two which isn't what I was going for, ie. the heading needs to be flush with the top of the column.

Is there a workaround for this?
0
 
LVL 31

Accepted Solution

by:
Paul Sauvé earned 500 total points
ID: 33587350
How do you create a new document model?
Once you have completes the changes to the styles, use the Save as option and select Word model in the Document type. Give it a significant name and save the new document model.
I have a heading style whereby the paragraph is shaded a colour. If this heading falls at the bottom of a column and I want to push it to the top of the next column, I insert a column break
OK - to start the column at the top of the page, select  the line (the entire line) of the table you want on the following page, then specify a page break before a paragraph:
  • On the Page Layout tab, click the Paragraph Dialog Box Launcher (the small arrow at bottom - right of the Paragraph dialogue), and then click the Line and Page Breaks tab.
  • Select the Page break before check box.
Sorry about the delay I`m in Quebec, Canada!!!
 
0
Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

 
LVL 31

Expert Comment

by:Paul Sauvé
ID: 33587626

I have a heading style whereby the paragraph is shaded a colour. If this heading falls at the bottom of a column and I want to push it to the top of the next column, I insert a column break
Does this example help?

NewPageTable.docx
0
 
LVL 1

Author Comment

by:gwh2
ID: 33595626
Thanks so much for the help and the example. I understand this now.

Could I ask just one other question: I've used a document building block control (found on the developer tab). This control allows you to put in placeholder text, eg. "Insert a quick part here if needed". I have a few of these controls in the document, but not all controls will be used to insert a quick part. It will depend on the document use. Since this is the case, the placeholder text will continue to remain onscreen and it will also print which isn't what I'd like. So I wondered if there was a way to set this placeholder text not to print, ie. only to remain onscreen?

I'm not sure if this is possible but if so could you provide instructions on how to do this?

Appreciate your continued support.
0
 
LVL 31

Expert Comment

by:Paul Sauvé
ID: 33599410
I`m not sure about this - I know that there is a QuickPart option in the Insert tab, but I see nothing on the developer tab on my version of Windows (2010 beta)..
0
 
LVL 1

Author Comment

by:gwh2
ID: 33601415
That's no problem - I'll try and find out elsewhere.

Thanks again for the other information.
0

Featured Post

Ransomware-A Revenue Bonanza for Service Providers

Ransomware – malware that gets on your customers’ computers, encrypts their data, and extorts a hefty ransom for the decryption keys – is a surging new threat.  The purpose of this eBook is to educate the reader about ransomware attacks.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

As with any other System Center product, the installation for the Authoring Tool can be quite a pain sometimes. This article serves to help you avoid making these mistakes and hopefully save you a ton of time on troubleshooting :)  Step 1: Make sur…
In this article we discuss how to recover the missing Outlook 2011 for Mac data like Emails and Contacts manually.
This video shows where to find the word count, how to display it, and what it breaks down to in Microsoft Word.
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

863 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

29 Experts available now in Live!

Get 1:1 Help Now