Ureader.com  
Microsoft software help and Community
   home   |   control panel login   |   archive   |  
 
Word
application.errors
conversions
docmanagement
drawing.graphics
formatting.longdocs
international
internet.assistant
mail
mailmerge.fields
menustoolbars
newusers
numbering
oleinterop
pagelayout
printingfonts
setup.networking
spelling.grammar
tables
vba.addins
vba.beginners
vba.customization
vba.general
vba.userforms
web.authoring
word6-7macros
word97vba
  
 
date: 24 Apr 2006 08:47:02 -0700,    group: microsoft.public.word.conversions        back       


Can't delete CR at end of document...   
Hi folks --

This is my first time creating a web page template for a client that
wants to make her own changes to her web site, but needs to do the
markup in Word.

It's not the most elegant solution in the world, but I'm using PHP to
include the Word doc (saved as filtered html)  inside a header and a
footer, html/body tags and all.  It worked surprisingly well, except I
keep getting a space between the Word-generated page and the footer.

I tracked this down to an html paragraph/font tag set that was being
generated by Word, due to a carriage return after the last table on the
page in the original document.  As a test I manually deleted the
paragraph/font tags in the exported html document and it worked fine.

Different story when I tried to delete the carriage return in Word.
Reveal definitely shows a paragraph/CR there, I just can't find a way
to delete it.  Selecting it, backspace, nothing worked.

Does Word *have* to have a CR after a table at the end of document?  If
so, does it have to export it as a "<p>" tag in html?   Any suggestions
are appreciated, especially since I'm so close to making this work.

Thanks!

-- Dave
date: 24 Apr 2006 08:47:02 -0700   author:   Dave

Re: Can't delete CR at end of document...   
Hi Dave - Word always has a paragraph mark after a table and also
always at the end of a document.  If you just open a blank document
from scratch and click the Show/Hide button, you will see a lone
paragraph mark.  You cannot remove it.  You can reset it's font size to
1 so it is very very small so it looks invisible on the screen, but I
am not sure how this will affect your html page though.  Hope this is
helpful.
date: 24 Apr 2006 09:14:13 -0700   author:   Lynn

Re: Can't delete CR at end of document...   
Hi Lynn, thanks very much for the quick response.  It's frustrating
that it forces carriage returns.

Your answer did get me on the right track though.  I played with the
font size, and even 1 left a noticable gap.  But then it occured to me
to leave it at 12 and fill that line with dashes to push the CR all the
way to the right margin.  I then set the fill to white and the text
color to white so they blended in with the background, and voila.  It's
a little more of a hack than I was planning on, but whatever works.

Thanks again!

-- Dave
date: 24 Apr 2006 09:50:47 -0700   author:   Dave

Re: Can't delete CR at end of document...   
Check the paragraph formatting of the last paragraph. Get rid of space 
before or after.
-- 
Charles Kenyon

Word New User FAQ & Web Directory: http://addbalance.com/word

Intermediate User's Guide to Microsoft Word (supplemented version of 
Microsoft's Legal Users' Guide) http://addbalance.com/usersguide

See also the MVP FAQ: http://word.mvps.org/FAQs/ which is awesome!

My criminal defense site: http://addbalance.com
 --------- --------- --------- --------- --------- ---------
This message is posted to a newsgroup. Please post replies
and questions to the newsgroup so that others can learn
from my ignorance and your wisdom.


"Dave"  wrote in message 
news:1145897447.734890.50390@j33g2000cwa.googlegroups.com...
> Hi Lynn, thanks very much for the quick response.  It's frustrating
> that it forces carriage returns.
>
> Your answer did get me on the right track though.  I played with the
> font size, and even 1 left a noticable gap.  But then it occured to me
> to leave it at 12 and fill that line with dashes to push the CR all the
> way to the right margin.  I then set the fill to white and the text
> color to white so they blended in with the background, and voila.  It's
> a little more of a hack than I was planning on, but whatever works.
>
> Thanks again!
>
> -- Dave
>
date: Mon, 24 Apr 2006 13:59:49 -0500   author:   Charles Kenyon

Re: Can't delete CR at end of document...   
Hi Charles, thanks for the reply.

Unfortunately, just the existence of a carriage return causes the Word
html export filter to put a <p> tag into the html code, and that's what
was causing the problem.  Fortunately, it seems to be fixed (at least
in my case) by my hack above.

Thanks again,

-- Dave
date: 24 Apr 2006 13:13:44 -0700   author:   Dave

Google
 
Web ureader.com


    COPYRIGHT 2007, YARDI TECHNOLOGY LIMITED, ALL RIGHT RESERVE  |   contact us