Screen capture to clipboard word error

Screen capture to clipboard word error

Matthijs.Kooi
Explorer Explorer
4,444 Views
6 Replies
Message 1 of 7

Screen capture to clipboard word error

Matthijs.Kooi
Explorer
Explorer

After running the model, I want to generate a report using Word. For that I am using the screen capture to clipboard from Robot to get the pictures pasted into word.

I'm facing with this a problem that the picture pasted has some error. It is showing first properly in the word document, but when I click "edit picture", the whole picture disappears, and cannot retrieved anymore. The Undo button doesn't bring the picture back.

Also when I want to prepare a PDF file of the document, and use the "Export, create PDF/XPS" document, the pictures also disappear in the pdf file. Within Word I still see the picture, but not on the PDF. As result the PDF and Word document are not the same anymore.

What is wrong with the clipboard coursing the copied screen capture to give an error?

I don't have this issue with any other software.

Using Robot 2023 and Word 365.

 

Please help.

0 Likes
4,445 Views
6 Replies
Replies (6)
Message 2 of 7

Stephane.kapetanovic
Mentor
Mentor

hi @Matthijs.Kooi 

you should look for solutions on the side of word 365 or recent windows updates.
It is possible that you exceed the image size or the total amount allocated and that although the images are present, they are no longer displayed.
I also recommend that you make captures (for example in PNG format via the API) and place them in a folder where you can keep them before the final PDF is issued.

many people use their own print engine and solution could be found here after:

https://forums.autodesk.com/t5/robot-structural-analysis-forum/api-command-vba-projection-capture-of...

Best Regards

Stéphane Kapetanovic

Did you find this post helpful? If it gave you one or more solutions,
don't forget to click the Accept Solution button and leave a < like !
EESignature
0 Likes
Message 3 of 7

Matthijs.Kooi
Explorer
Explorer

Thanks.

But I have tried solutions as indicated. all updates are in. And it is only occurring when using pictures from Robot, not with screen shots or pasted objects from any other software.

Offcoarse they are alternative solutions possible, which all take a bit more handling and instructions the users in our company, but I really like to solve this issue at the origin, where apparently the picture generated from Robot is not fully compatible with Word. Normally the PDF files generated are not checked in detail anymore, so this problem is easily not recognized. or recognized too late.

0 Likes
Message 4 of 7

okapawal
Autodesk
Autodesk

Hi @Matthijs.Kooi 

I confirm that we can reproduce this issue with saving Word document to PDF file.

 

Try to use File > Print to "Microsoft Print o PDF".  It works correctly in my case.

 

 



Waldemar Okapa

Software Quality Assurance & Testing Engineer
0 Likes
Message 5 of 7

Matthijs.Kooi
Explorer
Explorer

Thanks. Indeed. I also noticed that method works, as a work-around.

The problem I have, is that Word reports which our company makes, are automatically converted into PDF by our document controlling software. This software is using the default Export to PDF option of word. So, this automation does not give the proper quality anymore. Therefore I like to solve the root-course, and not work with a work-around.

So, if anyone know the solution to get proper formatten screen-picture into Word files, I would really appreciate.

0 Likes
Message 6 of 7

Stephane.kapetanovic
Mentor
Mentor

hi @Matthijs.Kooi 

in the link previously provided in message 146 you can find a method for inserting captures into the clipboard and MS Word via the API.

MS Word itself handles image compression depending on their format and source. PNG and re-encoded JPG usually give good results, while BMP may be reduced upon insertion and take up significant disk space.

https://support.microsoft.com/en-us/office/change-the-default-resolution-for-inserting-pictures-in-o...

Best regards

Stéphane Kapetanovic

Did you find this post helpful? If it gave you one or more solutions,
don't forget to click the Accept Solution button and leave a < like !
EESignature
0 Likes
Message 7 of 7

zacary9245RL6
Observer
Observer

Thank you!