Jump to content


 


Register a free account to unlock additional features at BleepingComputer.com
Welcome to BleepingComputer, a free community where people like yourself come together to discuss and learn how to use their computers. Using the site is easy and fun. As a guest, you can browse and view the various discussions in the forums, but can not create a new topic or reply to an existing one unless you are logged in. Other benefits of registering an account are subscribing to topics and forums, creating a blog, and having no ads shown anywhere on the site.


Click here to Register a free account now! or read our Welcome Guide to learn how to use this site.

Photo

Using A Word (.doc) File


  • Please log in to reply
10 replies to this topic

#1 KermitD

KermitD

  • Members
  • 81 posts
  • OFFLINE
  •  
  • Location:Stelle, Illinois
  • Local time:04:53 PM

Posted 18 May 2007 - 02:48 PM

I am using Front Page to maintain an existing website.

I received a Real Estate Flyer to display on the website. It is a .doc file. If I just link to the file, it has to open Word to display the flyer. I don't want it to do that.

I opened the file in Word and tried saving it as a webpage, which produces an .mht file, but when I link to the .mht file it comes in with empty picture spaces (little icons in the upper left corner). Gotta have the pictures.

What is the best way to incorporate a .doc file into a web page? Or How do I get the pictures to come in with the .mht file?
KermitD
Choices have consequences.

BC AdBot (Login to Remove)

 


m

#2 groovicus

groovicus

  • Security Colleague
  • 9,963 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:Centerville, SD
  • Local time:03:53 PM

Posted 18 May 2007 - 03:18 PM

I'm not on a Windows box at the moment, but I am guessing that the pics are being put in a folder somewhere, and the server can not find them? If you right click on where the picture is supposed to be displayed and then select properties, it should say where it is trying to find the pictures. And actually, I didn't even know one could save .docs as a web page. I'll have to try that tomorrow (Wife's B-Day tonight so I won't be able to check it out until then).

#3 Andrew

Andrew

    Bleepin' Night Watchman


  • Moderator
  • 8,250 posts
  • OFFLINE
  •  
  • Gender:Not Telling
  • Location:Right behind you
  • Local time:01:53 PM

Posted 21 May 2007 - 09:31 AM

Rather than clicking Save As Webpage click Save As and in the save dialog, change the Save As Type settings to Web Page (*.htm, *.html)

You'll probably still need to fix the images, but at least you won't need to deal with those weirdo .mht files (I hate those...)

#4 KermitD

KermitD
  • Topic Starter

  • Members
  • 81 posts
  • OFFLINE
  •  
  • Location:Stelle, Illinois
  • Local time:04:53 PM

Posted 24 May 2007 - 05:17 PM

I did what you said, AmazingAndrew, and I am more confused than ever. I deleted all the .mht files then, in Word, opened (one at a time) 3 .doc flyers with identical formats: picture of the house on top, textual description of the house, and across the bottom, the agency logo on the left, the business card of the agent in the center and a picture of the agent on the right.

I SavedAs .htm files, and in all cases had to move the top picture to the left and all 3 bottom graphics to the right. Then I resaved.

When I link (Ctrl Click) to these .htm flyers in Front Page, they all open in Word(?) - and they look really good. (Yet if I call Word and try to open one of the .htm flyers all I get is code.) I uploaded them all to the website.

Viewed on the website, the last one is perfect. The first one is perfect, except that no pictures show (just placeholders). The middle one puts all the picture placeholders where they belong, but has the picture of the agent where the house is supposed to be and the picture of the house where the logo is supposed to be.

It is making me gnuts!
My real question, here (I think), is what can I possibly be doing to make Word convert .doc files to .htm files differently? or, can there be a difference, within the .doc files, which cause them to be converted differently, which I can't see when I look at the Word .doc document prior to the conversion? Or is there something else?

I'm really looking for help, here, folks.
KermitD
Choices have consequences.

#5 Andrew

Andrew

    Bleepin' Night Watchman


  • Moderator
  • 8,250 posts
  • OFFLINE
  •  
  • Gender:Not Telling
  • Location:Right behind you
  • Local time:01:53 PM

Posted 25 May 2007 - 06:45 AM

Take a look at the HTML code for the pages in Frontpage. Like I said above, you'll probably need to fix the pictures.

MS Word can open and edit HTML documents, but is really craptacular at saving them in well-formed HTML.

Another thing you might try that may yield more pleasing results (I give no promises as I've not tried it) is to copy & paste the contents of the word document directly into a blank Frontpage document. (By this, I don't mean the raw HTML, but the text and pictures as a whole). If it works, all you should need to do is perhaps correct any alignment errors (like centered text might default to left-aligned) and double check the <img src="" part of the images so that the right file info is there (rather than relative paths to the image on your hard drive.)

#6 KermitD

KermitD
  • Topic Starter

  • Members
  • 81 posts
  • OFFLINE
  •  
  • Location:Stelle, Illinois
  • Local time:04:53 PM

Posted 25 May 2007 - 10:46 AM

When I open a .doc file in Word and save it as an .htm file (then correct the position of the graphics and resave) the
"103_Maple_Flyer.htm" file is generated and, with it, a folder named "103_Maple_Flyer_Files". If I open this folder it has a whole bunch of .jpg files named image0001.jpg, image0002.jpg, etc.

Since I save the .htm file in my local website folder, that is where the "_Files" folder also shows up. I can see them in Windows Explorer.

When I go back to Front Page, into the window which has the pane of local files on the left and the website files on the right, the new "103_Maple_Flyer.htm" is in the local pane. I can transfer it to the website. The "_Files" folder is not visible in the local pane, so I can't transfer it to the website. And it seems to be where all of the picture files are located.

So, is this my problem? Maybe not, because one of the Flyer.htm files displays perfectly, and there is no "_Files" folder for it on the website, either - go figure.

I did what you suggested, AmazingAndrew, Ie. copied the graphic display of the .doc file and pasted it onto a blank web page. Everything had to be moved to get it all centered. I uploaded it to the website, but the pictures didn't show then, either.

On the one flyer that works, the picture placeholders come in with 3 little icons in the upper left hand square, then, after about 10 seconds the pictures come in. On the flyers which don't show pictures this little square comes in with a red "X" in it.

Hmmm seems like there should be a question in here, somewhere. The truth is, I don't know what to ask.
I guess, "What can I try, now?"
KermitD
Choices have consequences.

#7 KermitD

KermitD
  • Topic Starter

  • Members
  • 81 posts
  • OFFLINE
  •  
  • Location:Stelle, Illinois
  • Local time:04:53 PM

Posted 25 May 2007 - 06:13 PM

OK... I looked and looked. Here's what I found.
There are 4 ".._Flyer.htm" files. Viewed in Front Page they are all skewed around but they have pictures.
Viewed on the website they are all properly proportioned. 3 have no pictures. One is perfect.

Looking at the src= entries in the "source" code on the website, all 4 reference their respective "_Flyer_Files" folder with an Image0001.jpg (or what ever jpg is supposed to be shown).
Looking at my local website Real Estate folder, in Windows Explorer, I see these "_Flyer_Files" folders.

In Front Page looking at the two-pane view of my local files/folders and the website files/folders, neither pane shows the "_Flyer_files" folders. Seems that one folder for each ...Flyer.htm file should be shown. But they are hidden. I have been all over the Help section, but my search terms haven't yielded anything useful.

The Real Estate agent who has these houses for sale isn't amused.
I need something new to try.
KermitD
Choices have consequences.

#8 Andrew

Andrew

    Bleepin' Night Watchman


  • Moderator
  • 8,250 posts
  • OFFLINE
  •  
  • Gender:Not Telling
  • Location:Right behind you
  • Local time:01:53 PM

Posted 26 May 2007 - 05:26 AM

try copying the "image0001.jpg" type files into the same folder as the .htm file to which they are attached. If all your .htm files are in the same folder (and I assume they are) then you'll need to rename the images first.
After copying, open the .htm files in Frontpage. The images should all have disappeared, replaced by placeholders. Go into the source code and change the src="" bit to reflect the new names of the images (making sure to delete the "_Flyer_Files" part too).

Then see if you can upload all the files to your website.

I don't use Frontpage so I'm not sure about this next bit, but, if you still can't see the images in the local folder, check for a menu labeled Files of Type or something similar and change ot to All Files. That may clear up that problem.

#9 Andrew

Andrew

    Bleepin' Night Watchman


  • Moderator
  • 8,250 posts
  • OFFLINE
  •  
  • Gender:Not Telling
  • Location:Right behind you
  • Local time:01:53 PM

Posted 26 May 2007 - 05:28 AM

Also, it might be helpful to post the address for the three flyers. Then, we can examine the HTML of the two that don't work and the one that does work and perhaps catch an error in the HTML itself.

#10 KermitD

KermitD
  • Topic Starter

  • Members
  • 81 posts
  • OFFLINE
  •  
  • Location:Stelle, Illinois
  • Local time:04:53 PM

Posted 30 May 2007 - 09:06 AM

Thanks for all your help, AmazingAndrew. I finally bit the bullet and hand-coded the pages. Then I copied the code into a Front Page test page and saved it.

Each flyer uses the same 5 .jpg or .gif files. I just put all these in a folder with the pictures of the houses. Then I uploaded this folder and all the Front Page "flyer" .html pages. It works just fine.

When I get another flyer I will just copy the boilerplate, put the picture in the folder and I'm all set.

Thanks again. I love this forum.
KermitD
Choices have consequences.

#11 Andrew

Andrew

    Bleepin' Night Watchman


  • Moderator
  • 8,250 posts
  • OFFLINE
  •  
  • Gender:Not Telling
  • Location:Right behind you
  • Local time:01:53 PM

Posted 31 May 2007 - 12:09 AM

No problemo!

If you're planning to do a lot of HTML work, you may want to consider investing in a more robust program than Frontpage. I use Dreamweaver 8 and I can't be happier!




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users