Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Word / Programming / July 2005

Tip: Looking for answers? Try searching our database.

Template help please

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Jason Sacks [MSFT] - 21 Jul 2005 00:42 GMT
Hi there, I hope you kind folks can help me.

I have a friend who's quite advanced in his use of Word templates but who
seems to have hit a block in a template he's developing. In his words:

I've created a ZIP file (http://www.davecockrum.net/ComicScript.zip)
containing the comic book script template (DOT file), the required INI file,
some brief instructions on installation and use (originally written for beta
testers), and the script for LAST STAND ON KRYPTON, which was written with a
version of this template.

As you'll see, it's more than a collection of paragraph styles and
convenience macros. It really *is* a little program for writing comic book
scripts.

Here's what has me stumped:

I need a way to insert a new story page between two extant pages. (Not a new
script page, but a new page of the comic book story. If you look at the
Superman script, you'll see what I mean.)

The code not only needs to read the number of the current page and the next
page (which is easy), it also needs to be able to process the rest of the
extant script, revising the page numbers contained in the SEQ fields for
story pages, panels, and balloons. (It was necessary to use SEQ fields rather
than any of Word's internal numbering schemes, because a comic book script
requires running three separate numbering sequences in parallel.)

My failure at getting this to work begins in the module called "New Story
Page" with the subroutine called "Tweener".

If anyone has any suggestions for making this work-- or any other
suggestions for improving the template in general -- I'm all
ears/eyes/whatever the hell organ is appropriate.
....
Can I persuade anyone to help Steve out? Thanks for your attention!

[Note that I work for Microsoft but this is non-work related.]
Helmut Weber - 21 Jul 2005 16:25 GMT
Hi Jason,

are you sure the beginners' group is the right one?

That's about the biggest project I've ever seen.
Though I really never saw some except of my own ones. ;-)

However, with such a lot of code,
precision is extremely important.
There is no module called "New Story Page",
it is called "NewStoryPage".

And there is no subroutine called "Tweener".
It could be a function, but there is no function "Tweener" either.

It is a boolean variable instead.

And the ini-file is not found, though it is in the right location.
No wonder, as the document variable "inifile" tells me,
it's value was "Script2K.ini".

Having fixed that, it seems,
inserting a new page is working,
except that the page numbering is wrong in field.results
like "PAGE FIVE", which is found on pages, where it shouldn't be.
No wonder again, as they are defined by the same code.

All in all, in my humble opinion, this is an admirable
peace of work, but there are limits to complexity.

Greetings from Bavaria, Germany

Helmut Weber, MVP, WordVBA

Win XP, Office 2003
"red.sys" & Chr$(64) & "t-online.de"

Rate this thread:






 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.