Skip to main content
Participant
Apr 5, 2011 3:31 PM UTC
Question

Convertion into RTF format failed

I am developing a FM plugin to convert .fm files into .rtf file format. I am using the following code for conversion. But the conversion is not happening.

docId = F_ApiSimpleOpen("C:\\tmp\\Untitled1.fm", False);

docname = F_ApiGetString(docId, docId, FP_Name);

params = F_ApiGetSaveDefaultParams();

i = F_ApiGetPropIndex(&params, FS_FileType);

params.val.propVal.u.ival = FV_SaveFmtFilter;

i = F_ApiGetPropIndex(&params, FS_SaveFileTypeHint);

params.val.propVal.u.sval = F_StrCopyString("0001ADBIRTF");                                 

saveId = F_ApiSave(docId, "C:\\tmp\\Untitled1.rtf", &params, &returnParams);

F_ApiDeallocatePropVals(&params);

F_ApiDeallocatePropVals(returnParams);

i am using FDK7 for development

any idea ?

    This topic is closed to new replies. Start a new post to keep the conversation going.

    2 replies

    Apr 5, 2011 3:58 PM UTC

    Vibin, you would probably find more FDK support on the Framers Dev group,

    <*> To visit your group on the web, go to:

        http://groups.yahoo.com/group/frame_dev/

    Translate
    Inspiring
    Apr 5, 2011 4:04 PM UTC

    And unless there are circumstances that you know about but didn't share, you may want to simply use the primary plug-in / add on program that pretty much dominates the market, MIF2Go, from omsys.com ... Most Framers who have to export to RTF have settled on MIF2Go because of the quality of output and its flexibility to output to many other formats in addition to RTF.

    Translate