Answered by:
Image control from access db

Question
-
Hello all,
I have a question about inserting an image (or an image control) in a word document: image path (or, better, image name) comes from an access database field and changes, obviously, with selected record.
I mean: I have developed a small Delphi program that records in an access db anagraphical data of our users. It records also a picture of the newly inserted user, storing it in access as path to the picture; for example, user Silvia M. record is:
Name: Silvia
Surname: M.
Birthdate: 09/05/19XX
Picture: Images\silvia01.jpg
In word I've set up some bookmarks and I've told Delphi to write data in bookmarks (GoToBookmark(pointer(dbgrid.selectedRows.Items[i])) so clicking on a button, Delphi exports on a word file every user data that is "bookmarked"; between these, I can export also picture path as "dynamic" bookmark but I can't figure how to use this data for showing the picture itself.
Thanks and best regards,
Silvia
- Moved by Emi ZhangMicrosoft contingent staff Wednesday, November 21, 2018 7:13 AM Third party program
Tuesday, November 20, 2018 3:27 PM
Answers
-
Hello,
you could ask here: https://answers.microsoft.com/en-us/msoffice/forum/msoffice_word
Regards, Guido
- Proposed as answer by Richard MuellerMVP, Banned Wednesday, November 21, 2018 10:17 AM
- Marked as answer by Dave PatrickMVP Wednesday, November 28, 2018 10:17 PM
Wednesday, November 21, 2018 7:22 AM -
You also can ask here:
https://answers.microsoft.com/en-us/msoffice/forum/msoffice_access
Richard Mueller - MVP Enterprise Mobility (Identity and Access)
- Proposed as answer by Guido Franzke Wednesday, November 21, 2018 10:26 AM
- Marked as answer by Dave PatrickMVP Wednesday, November 28, 2018 10:17 PM
Wednesday, November 21, 2018 10:18 AM -
Thanks to you both; actually I've resolved vis Delphi, deleting the ImageControl on word and using a simple
statement: WordApp.ActiveDocument.InlineShapes.AddPicture(path_to_image_stored_in_Access_db);
Best,
Sil
- Marked as answer by Dave PatrickMVP Wednesday, November 28, 2018 10:17 PM
Wednesday, November 21, 2018 2:12 PM
All replies
-
Hello,
you could ask here: https://answers.microsoft.com/en-us/msoffice/forum/msoffice_word
Regards, Guido
- Proposed as answer by Richard MuellerMVP, Banned Wednesday, November 21, 2018 10:17 AM
- Marked as answer by Dave PatrickMVP Wednesday, November 28, 2018 10:17 PM
Wednesday, November 21, 2018 7:22 AM -
Thanks to you both; actually I've resolved vis Delphi, deleting the ImageControl on word and using a simple
statement: WordApp.ActiveDocument.InlineShapes.AddPicture(path_to_image_stored_in_Access_db);
Best,
Sil
- Marked as answer by Dave PatrickMVP Wednesday, November 28, 2018 10:17 PM
Wednesday, November 21, 2018 2:12 PM