Paste in Visio not working?

Started by johmut, May 09, 2022, 08:36:46 AM

Previous topic - Next topic

johmut

Our organisation switched to O365 Click-to-Run applications. I can no longer copy views from Archi (copy as image to clipboard) and paste into Visio? I get all the boxes and the lines but no colours and no text, except for the text on named relations? Paste Special only shows only one option: "Device Independent Bitmap", with the result described above. When I paste the same clipboard into Paint or PowerPoint, I do get the View as a picture with all colours and texts. When I then copy the picture from PowerPoint and paste it into Visio, it appears correctly...
I understand this is likely a Visio issue but is there a workaround other than passing through another app?

(I am using Archi Version 4.9.3 Build 202203221030 and Visio Version 2202 Build 14931.20274)

xiaoqi

If you paste as image, my understanding is you're not intending to have model element information in Visio, right? Then, possible you can use screen-capturing tool to snap the area of image screen then paste special into Visio.

Phil Beauvoir

#2
Quote from: johmut on May 09, 2022, 08:36:46 AMI get all the boxes and the lines but no colours and no text, except for the text on named relations?

I don't know how that is possible. In the Archi/Eclipse code, a BMP image is created from the raw image data and copied to the system clipboard. This image data could be anything, not just boxes and lines (for example, diagram objects that have images). Perhaps Visio has some strange image recognition that filters only boxes and lines?
If you value and use Archi please consider making a donation! https://www.archimatetool.com/donate

johmut

Hi Phil,

I don't understand it either. Can you try to reproduce? I attach screenshots of what I get: in Visio and in PowerPoint.
Visio Result
PowerPoint Result


Phil Beauvoir

Quote from: johmut on May 13, 2022, 13:00:09 PMHi Phil,

I don't understand it either. Can you try to reproduce? I attach screenshots of what I get: in Visio and in PowerPoint.
Visio Result
PowerPoint Result

I can't try this as I don't have access to Visio.

It looks as if there is some text there, but washed out.

This could either be a bug in that version of Visio or Eclipse's generation of Windows BMP images needs to be updated. If it's an Eclipse issue, the only way they'll look at it is by filing a bug here with a reproducible test case snippet that creates a suitable image, copies it to the clipboard, and pastes into Visio.
If you value and use Archi please consider making a donation! https://www.archimatetool.com/donate

johmut

Hi Phil,

I just checked and have the same result in InkSkape as in Visio, with a simple paste from Archi.
When I export as SVG, I can import in both Visio (fine) and InkSkape (better). SO it must have something to do with how vector graphics application paste from the clipboard IMHO. Paint and PowerPoint don't have this problem so it seems.

BTW: Is it possible to export to SVG with text as <Text> objects and not as <Path> objects?

Phil Beauvoir

#6
What happens if you copy and paste a Canvas View that contains images?

Actually, I can reproduce this in Inkscape. Images are OK, but text is always white, and fill colours are not rendered.
If you value and use Archi please consider making a donation! https://www.archimatetool.com/donate

johmut

Canvas View pastes fine in both Visio and InkSkape.
Glad you could reproduce.

Phil Beauvoir

If you value and use Archi please consider making a donation! https://www.archimatetool.com/donate