473,396 Members | 2,024 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

How to append specific *.tif image with another tif file through Word VBA

1
Hi All,
This is the first time, i am using this site. I hope i will get my question answered. Thanks in advance for all your support.
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!
Expand|Select|Wrap|Line Numbers
  1. Set sPrinter = CreateObject("Word.Application")
  2.  sPrinter.ActivePrinter = "Informatik Image Driver 3.50"
  3.  
  4. With ActiveDocument
  5.  .PrintOut Background:=True, OutputFileName:=FNPath, Collate:=True, PrintToFile:=True
  6.  End With
  7.  With Application.FileDialog(msoFileDialogFilePicker)
  8.  .AllowMultiSelect = True
  9.  .Filters.Clear
  10.  .Filters.Add "Tiff Image", "*.tif"
  11.  .Title = "Select the File that you want to append"
  12.  .InitialFileName = "G:\Everyone\Letter Automation Testing - DO NOT DELETE"
  13.  .InitialView = msoFileDialogViewList
  14.  Set FiletoInsert = .SelectedItems
  15.  FiletoInsert.PrintOut Background:=True, Append:=True, OutputFileName:=FNPath, Collate:=True, PrintToFile:=True
  16.  
  17.  End With
Apr 7 '14 #1
0 1135

Sign in to post your reply or Sign up for a free account.

Similar topics

12
by: zhushenli | last post by:
Hello all, In c,i can open a file with argv append, How to append context to a FILE in c++ fstream? Thanks! Regards, Davy
5
by: Xero | last post by:
How do you get a specific letter from a word? For example, in English, I would say: Get the fifth letter from the word "Computer" Then the letter 'u' will be returned. (C-O-M-P-U-..., 'u' is...
4
by: MLH | last post by:
Setting form's Picture property to another file from within VBA doesn't repaint the form with new bitmap - for instance... Me.Picture = "c:\pics\MyNewPic.jpg" I tried Me.Repaint afterward,...
17
by: Eric_Dexter | last post by:
def simplecsdtoorc(filename): file = open(filename,"r") alllines = file.read_until("</CsInstruments>") pattern1 = re.compile("</") orcfilename = filename + "orc" for line in alllines: if not...
14
by: Steve K. | last post by:
I have a method that I use to get a System.Drawing.Image from a file without keeping a handle on the file open (so I can delete the file). Here is the code: <code> public static Image...
6
by: globalrev | last post by:
i ahve a program that takes certain textsnippets out of one file and inserts them into another. problem is it jsut overwrites the first riow every time. i want to insert every new piece of...
0
by: getpunith | last post by:
Hi all, How can export or insert an Image to MS WORD 2007. Doc.InlineShapes.AddPicture() needs an Image file stored on disk space, But I dont have Image file.What I have is an Image object. ...
0
by: raylopez99 | last post by:
I have a minor problem locating an image file to load as a Bitmap. A resource file "NudeSusan.jpeg" (which I think is actually a bmp file, originally taken from a jpeg of model Susan Spears) is...
6
by: charley Situ | last post by:
I want to open a word file, check again my list of words or phases to extract (such as Monday_Tuesday, Happy_birthday and etc) write the word or phases to another file Also states which...
3
by: pavan52 | last post by:
I want to pass the the table_name and ID_NO as a parameter to the Image.php file. So that whenever I will send the table_name and ID_NO to the image.php file it should fetch the image stored on that...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.