Skip to main content
Participant
May 20, 2013
Question

Exporting OLE2 to VSD using r/w rules

  • May 20, 2013
  • 2 replies
  • 1084 views

I have a structured XML app and I am trying to export out OLE2 graphics that are embedded in FrameMaker. I am trying to use the VSD, SVG filter but I am getting the error I have listed below.

I am using FrameMaker 11 structured.

On windows 7.

I get the following error

"Cannot export the FrameMaker graphic element (Graphic) in the specified graphic format (VSD).

Filter failed attempting to export a graphic as (VSD)."

Here is my code in r/w rules:

element "Graphic"

{

is fm graphic element "Graphic";

  writer

   facet "DIB"

    export to file "$(docname).png" as "PNG ";

  writer

   anchored frame

    export to file "$(docname).png" as "PNG ";

  writer

   facet "ole2"

    export to file "$(docname).vsd" as "VSD";

}

The first writer rule is to grab dib formats and save as png, the second rule is to take framemaker drawing objects and save as png, and the last should grab the OLE2 format to vsd. This is not working. Anyone know what the facet should be when the object displays that the facet is OLE2. Are these filters working???

Thanks for any help that anyone has to offer.

This topic has been closed for replies.

2 replies

Participant
May 21, 2013

This is the only code I have written that actually creates a .vsd.

Perhaps embedded graphics (OLE) needs the sub rule "convert referenced graphics;" ? But unfortunately the file doesn't open. I need to get these graphics to retain the vector properties. Any other ideas?



element "Graphic"

{

is fm graphic element "Graphic";

  writer

   anchored frame

    export to file "$(docname).png" as "PNG ";

  writer

   facet "DIB"

    export to file "$(docname).png" as "PNG ";

  writer

   facet "OLE2" {

    convert referenced graphics;

    export to file "$(docname).vsd" as "CGM ";}

}

Arnis Gubins
Inspiring
May 20, 2013

AFAIK, FM doesn't support the VSD format for export. Try using either WMF, EMF or just plain OLE. See the "Supported Graphics Formats" in the Structured Development Guide.

Participant
May 20, 2013

Thank you for your information.

Here is what FrameMaker 11 advertises:

"Structured FrameMaker supports round-tripping OLE objects, such as Visio objects.."

Page 422 of FrameMaker_USER_GUIDE

It is hard to round trip if you can't export.

I have also found that the following filter is enabled out of the box:

115="SVG " FRAM SVG     SVG GFXExport  "SVG" frame.exe ^.svg

I can use svg format for a ole objects but this filter is also failing.

I can't find the FrameMaker 11 Structured Development Guide. I would hope that this release would have additional formats versus the FrameMaker 9 Structured Development Guide which is all I can find.

Is there a FrameMaker 11 Structured Development Guide?

Here is the link that I am finding my PDF guides:

http://www.adobe.com/devnet/framemaker.html

Thanks again.

Arnis Gubins
Inspiring
May 20, 2013

Margaret,

The last update of the Structured Dev guide & reference was for FM9. Adobe has been very lax abou getting all of their docs updated. Some haven't been updated since FM7.2!

Note that the info refers to roundtripping of OLE objects (OLE is one of the supported formats) of which Visio objects are included (actually any object embedded as OLE) in a metafile format.