Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 09-10-2013, 01:15 AM
Twily Twily is offline VBS Image Replacement - Appearing as Gray Box with Filename Windows 7 64bit VBS Image Replacement - Appearing as Gray Box with Filename Office 2007
Novice
VBS Image Replacement - Appearing as Gray Box with Filename
 
Join Date: Sep 2013
Posts: 2
Twily is on a distinguished road
Smile VBS Image Replacement - Appearing as Gray Box with Filename


Hi


I'm hoping someone can assist me with an issue I'm having with MS Word and image replacements with VBS. The script itself works fine on one machine, yet copied to another machine with another installation of Office 2007 (same OS) it ends up having issues with replacing images.
The script looks like the below:

With oWordApp .Documents.Open("C:\Template.doc") .Documents(1).Activate() .ActiveWindow.ActivePane.View.SeekView = 9 .ActiveWindow.Selection.HeaderFooter.Shapes(2).Lin kFormat.SourceFullName = "C:\test_logo.bmp" .ActiveWindow.Selection.HeaderFooter.Shapes(2).Sel ect .ActiveWindow.Selection.Fields.Update ..... The script works fine on another system running the same version of Word 2007 (same OS). The script runs and completes, but the image for some reason doesn't seem to come through and looks like it's unsupported. On the other machine, where it works, the image comes out fine, but on this one installation it appears like this in the processed Word document:







The file is a BMP image file made in MS Paint so support shouldn't be a problem, and drag 'n' drop of the image works, as well as the 'Insert' method.

I don't believe the script is the issue since it works on another machine, and the image file and template are identical over the two machines. Is there some Word 2007 configuration that fixes this? Or is there some easy way to compare the Office Installations?
Reply With Quote
  #2  
Old 09-12-2013, 11:12 PM
Twily Twily is offline VBS Image Replacement - Appearing as Gray Box with Filename Windows 7 64bit VBS Image Replacement - Appearing as Gray Box with Filename Office 2007
Novice
VBS Image Replacement - Appearing as Gray Box with Filename
 
Join Date: Sep 2013
Posts: 2
Twily is on a distinguished road
Talking Solved

[SOLVED]


The issue was with Microsoft Paint itself, uninstalling and reinstalling it from the Windows OS with the Windows CD fixed the issue.


For some reason the Bitmap image, although rendered in a drag and drop, could not be inserted as an 'object' into MS Word, so the dynamic link assignment also failed. The aforementioned solution fixed this - I would not have thought that MS Word 2007 relied on MS Paint itself for some Bitmap background work, but it appears to function that way in this case.
Reply With Quote
Reply

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Control replacement font in advance? Katten03 Word 6 07-13-2016 04:24 AM
Replacement lostsoul62 Excel 0 04-14-2012 10:07 AM
Line appearing over left and top of image when saving rs14smith Word 17 01-04-2012 11:02 AM
Light gray lettering on a darker shade of gray =? Emerogork Outlook 0 10-23-2011 08:09 AM
Replacement Software hirize Office 0 08-28-2008 02:33 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 02:23 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft