Re: Is it possible to clear the office clipboard?!



Wagner Carvalho wrote:


I am trying to create a function to export figures from MATLAB to
word document. That would help a lot to create the documentation of
any analisys.
Till now, i was able to make it work using ActiveX session with
microsoft word. It goes like this, for example:

%start activex session
wordServer = actxserver('Word.Application');
%copy figure from Matlab
print -dmeta;
%paste figure on word document
invoke(wordServer.Selection,'Paste');

The problem is that i have to paste more them 300 figures. After
repeat the "print -dmeta" command 150 times the Office clipboard
becomes full and it starts to paste the last figure. It start to
repeat the last figure.

I would like to know if there is a command that clears the Office
clipboard?! Does anyone know how to do this?!?!

Thanks


Read <http://support.microsoft.com/kb/221190>
"...There is no Visual Basic for Applications object model for the
Office Clipboard, so there is no way to programmatically manipulate
it."

Yair Altman
.



Relevant Pages

  • Re: save figure & resize .ps --> pdf
    ... > the insert command from the drop down menu in the MSword. ... The best way is to save matlab plots in jpeg format & then insert ... them into word document. ...
    (comp.soft-sys.matlab)
  • Is it possible to clear the office clipboard?!?!
    ... I am trying to create a function to export figures from MATLAB to ... %paste figure on word document ... repeat the "print -dmeta" command 150 times the Office clipboard ... I would like to know if there is a command that clears the Office ...
    (comp.soft-sys.matlab)
  • Re: Word to Matlab by using ActiveX
    ... When I press a link it should tell Matlab to do a specific task for me, in my case to highlite a specific subsystem in Simulink, is this possible? ... I know Matlab supports ActiveX when controlling e.g. a word-document from Matlab but is it also possible to go the other way around, to control Matlab from Word? ... In my case I write from Matlab into a Word document, but I want to highlight Simulink blocks by clicking a link in that Word document. ...
    (comp.soft-sys.matlab)
  • problem with import worddocument in matlab
    ... I am currently working on a school project about digital wireless communication. ... We're having some problems with read in a word document with text into matlab, what we want to do is to translate the words in the worddocument to binary code, we have no problems converting to the binary code, but we simply don't know how to import the word document in matlab. ...
    (comp.soft-sys.matlab)
  • Re: Macros Warning for a text I copied from a text based website
    ... Command + C and Command + V are exactly the same as COPY and PASTE. ... common format is Word Document, and that's what you will get. ... If you paste into a Browser, the richest common format is HTML (both Word ... The richer the pasting format, the more likely it is to support "active ...
    (microsoft.public.mac.office.word)