Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6637295
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T23:17:45+00:00 2026-05-25T23:17:45+00:00

I am using MATLAB to paste and caption plots into Microsoft Word. I would

  • 0

I am using MATLAB to paste and caption plots into Microsoft Word. I would like to also crop these images using the ActiveX control.

something like:

word = actxserver('Word.Application')

word.Visible = 1
op = invoke(word.Documents,'Add')

invoke(word.Selection,'Paste')

invoke(word.Selection,'CropBottom',CropAmount) <----- Except there is no function that will allow me to crop.

I am modifying the MATLAB File Exchange “save2word.m”

Thanks

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T23:17:46+00:00Added an answer on May 25, 2026 at 11:17 pm

    Consider this example:

    %# create plot and copy to clipboard
    plot(rand(10,1))
    print -dmeta
    
    %# open MS-Word
    Word = actxserver('Word.Application');
    Word.Visible = true;
    
    %# create new document
    doc = Word.Documents.Add;
    
    %# paste figure from clipboard
    Word.Selection.Paste
    
    %# crop the image
    doc.InlineShapes.Item(1).PictureFormat.CropBottom = 100;
    
    %# save document, then close
    doc.SaveAs2( fullfile(pwd,'file.docx') )
    doc.Close(false)
    
    %# quit and cleanup
    Word.Quit
    Word.delete
    

    screenshot_ms_word

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am working on developing a lossless compression algorithm using MATLAB. I would like
I'm using MATLAB to plot some data. I would like to create the legend
I would like to test the Flickr API using Matlab. There is no Flickr
I want to create images like this from a double precision matrix using MATLAB.
I'd like to generate some code using MATLAB Embedded Coder that runs an fft2
I want to convert images to web-safe colors using MATLAB. Is there any predefined
I am drawing dendrogram using matlab function like the following [h1,t1,perm1] = dendrogram(z,3); According
Possible Duplicate: Local Binary Pattern in MATLAB I would like to implement uniform LBP.
It seems like most image processing apps are done using matlab or OpenCV using
I am trying to translate a function in a book into code, using MATLAB

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.