Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 04-08-2014, 10:39 AM
aarun2 aarun2 is offline How to append specific *.tif image with another tif file through Word VBA Windows 7 32bit How to append specific *.tif image with another tif file through Word VBA Office 2010 32bit
Novice
How to append specific *.tif image with another tif file through Word VBA
 
Join Date: Apr 2014
Posts: 1
aarun2 is on a distinguished road
Default How to append specific *.tif image with another tif file through Word VBA

Hi All,

Here is what i want: I am doing an automation in Word to print the document as Tiff file as well as i would like to append certain tiff images with the same. I tried with below code, but i am not able to find how to append the tiff image, Please help me! This would avoid more errors in our process.

Set sPrinter = CreateObject("Word.Application")
sPrinter.ActivePrinter = "Informatik Image Driver 3.50"

With ActiveDocument
.PrintOut Background:=True, OutputFileName:=FNPath, Collate:=True, PrintToFile:=True
End With
With Application.FileDialog(msoFileDialogFilePicker)
.AllowMultiSelect = True
.Filters.Clear
.Filters.Add "Tiff Image", "*.tif"
.Title = "Select the File that you want to append"
.InitialFileName = "G:\Everyone\Letter Automation Testing - DO NOT DELETE"


.InitialView = msoFileDialogViewList
Set FiletoInsert = .SelectedItems
FiletoInsert.PrintOut Background:=True, Append:=True, OutputFileName:=FNPath, Collate:=True, PrintToFile:=True

End With
Reply With Quote
  #2  
Old 04-08-2014, 03:20 PM
macropod's Avatar
macropod macropod is online now How to append specific *.tif image with another tif file through Word VBA Windows 7 32bit How to append specific *.tif image with another tif file through Word VBA Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 21,963
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

Cross-posted at: http://www.vbaexpress.com/forum/show...rough-Word-VBA
For cross-posting etiquette, please read: http://www.excelguru.ca/content.php?184

If you want to include other TIFF images in the output, consider saving the document then adding the images to it document before printing. You can always close the document without saving afterwards, so the TIFF images don't remain with it.
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
Reply

Tags
word vba



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to append specific *.tif image with another tif file through Word VBA Determining file path for linked image in Word 2007 samhdc Word 7 01-26-2015 04:21 PM
Append text to a sentence containing specific word dgp Word VBA 3 02-28-2014 10:38 PM
Word table - how do I append % symbol to each value in columns 3 & 4 of a table Dawsie Word 4 03-06-2013 12:33 AM
Word loses image sizing when I reopen file rbz1949 Drawing and Graphics 4 06-24-2010 11:19 AM
OFFICE(Word,Excel..)-crash/close when DIALOG BOX launched of insert image,open file buggingme Office 1 05-30-2010 12:18 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 06:58 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