Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Moving SVG content to the clipboard?
Message
From
23/12/2018 12:05:49
 
 
To
23/12/2018 09:42:00
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
General information
Forum:
Visual FoxPro
Category:
Pictures and Image processing
Miscellaneous
Thread ID:
01664827
Message ID:
01664849
Views:
51
HI Dragan;

Thanks for dropping in:-)

>The easiest way would be to say _cliptext=lcSvgContent - because svg, just like any other markup, is just text. Now to force Windows to recognize it as a special MIME type is a completely different matter.

That's what I am trying to achieve. The application is a "plot builder". And what we offer now is the good ol' "copy to clipboard" + a host of "copy to files" functionality both raster formats and vectorial output (SVG and PDF). PDF is really nice but SVG output was more or less rickety. Both in terms of output by our app. And as import material. Well aside from browsers and the "inescapable" inkscape, it was really not the kind of meat our users would explore.

We discovered tha SVG input can now be properly handled as import material from MS-Word, MS-Excel and MS-PPT via MS-Office 365 edition "import image..." functionality. Good news! But this is of course quite a be tedious ... And indeed we are willing to have the Windows platform, and even more, MS-Office 365 to "recognize" SVG clipboard content and paste it properly. Not your father's clipboard copy...

>BTW happy to see that I'm not the only one who played with this. Looking at my last attempt (which is just lying there because we couldn't decide where to put it - it worked great), it's january 2012 :).

_cliptext=FILETOSTR(GETFILE("svg")) and then paste? Why not?

I'l have a couple of tests. Not easy. Since our dev machines have older versions of the MS-office packages. Not the recent 365 edition with SVG support:-(

I have tested already it from within Inkscape (0.92.3). It does NOT work. Pasting xml as sheer string is not "accepted svg clipboard format. I'll inform you if that works from MS-office applications as but I have some doubts.

Of course I have some doubts as that it could even work with proper management of the clipboard à la windows. But for sure it is the first time over the last years that I find some use for SVG at workstation level. And that's good news! We are in approaching 2019, aren't we?

Daniel
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform