Jump to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Insert image into rtf file

Featured Replies

Hi guys

Is there a way of sending a command from FM to Word to insert an image at a specified point in the file?

I have an rtf report created by exporting xml and transforming with an xslt sheet. However, I can't export the contents of a container field, so would like to be able to export to a specified location and then use a command to 'pick it up' and insert at a place holder in the rtf / word doc.

Is this possible?

Thanks in advance.

  • Newbies

I am trying to do something similar. I know that MS Word supports images embedded as HEX in RTF. I am trying to find a way to export the contents of a container as HEX and include in the RTF, but have not found a way yet.

FM does not have direct commands for this. You'd have to use VBscript generated from FM that uses the Word Object Model. Then you can export from FM, have Word pick it up, insert it into the document and save the document as RTF. The heavy lifting here is through the VBscript talking "Word". (This can all be done invisible to the user).

The challenge from FM is how to generate, execute and clean up the VBscript, returning any errors to FM so you can handle them.

So the question really is: how much VBscript can you do? In other words: this is more of a Word coding skill than a FM coding skill.

Oops, did not see that TV_kid is on OSX. The same logic applies since you'd have to use applescript instead of VBscript.

  • Author

So the question really is: how much VBscript can you do? In other words: this is more of a Word coding skill than a FM coding skill.

I've never done any! I would be interested in learning, but not certain that I have the time at the moment, with trying to also learn xml, php ....

I'm looking at other ways of achieving the report in question, but will certainly bear this in mind.

As it happens, this particular report will be created on a pc most of the time, so it could utilise VBscript.

Thanks for your advice.

Create an account or sign in to comment

Important Information

By using this site, you agree to our Terms of Use.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.