Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Visual Basic > VB 6 Visual Basic 6 > VB How-To
| Search | Today's Posts | Mark Forums Read
VB How-To Ask your "How do I do this with VB?" questions in this forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the VB How-To section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
  #1 (permalink)  
Old December 3rd, 2004, 02:46 AM
Registered User
 
Join Date: Nov 2004
Location: Singapore, Singapore, Singapore.
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Default saving picture from word to other folder

hi, i am using vb6 to create a program that read paragraph by paragraph form microsoft word, below is my coding:

Private Sub Command1_Click()
Dim wdApplication As Word.Application
Dim docWord As Word.document
Dim parCounter As Word.Paragraph
Dim wParas As Word.Paragraphs
Dim oShape As Object
Dim strPath As String

Set wdApplication = CreateObject("Word.Application")
Set docWord = wdApplication.Documents.Open("C:\GraphicTest.doc")
Set wParas = docWord.Paragraphs

For Each parCounter In wParas
If parCounter.Range.InlineShapes.Count > 0 Then
docWord.SaveAs "C:\entities.html", wdFormatHTML
strPath = docWord.FullName
Else
List1.AddItem parCounter.Range.Text
End If
Next
docWord.Close False
wdApplication.Quit wdDoNotSaveChanges
Set docWord = Nothing
End Sub

my question is why everytime when this program executes the SaveAs command, it will automatically save the pictures that i inserted in my GaphicTest.doc into another folder (automatically generated by this program.. and i have no idea how it generate) called entities_files. Actually my purpose is to save the pictures into a specified folder as .jpeg file, when i still trying to search for the command on how to doing it, this problem comes out.. can anybody please help me? Any idea? thanks.. :)


Similar Threads
Thread Thread Starter Forum Replies Last Post
List name of item from folder 'My Picture' mona_upm84 Excel VBA 2 September 4th, 2008 05:54 PM
Saving picture in Access Jennyalex Access 5 August 16th, 2006 07:55 AM
Saving Picture file to specific Location sangeenobs VB How-To 0 December 13th, 2005 11:18 AM
Inserting a picture from a database into Word fastcorvette Pro VB Databases 1 February 15th, 2005 07:02 PM
ASP - Saving file to folder rleap Classic ASP Basics 3 January 28th, 2005 03:24 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.