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(¶ms, FS_FileType);
params.val.propVal.u.ival = FV_SaveFmtFilter;
i = F_ApiGetPropIndex(¶ms, FS_SaveFileTypeHint);
params.val.propVal.u.sval = F_StrCopyString("0001ADBIRTF");
saveId = F_ApiSave(docId, "C:\\tmp\\Untitled1.rtf", ¶ms, &returnParams);
F_ApiDeallocatePropVals(¶ms);
F_ApiDeallocatePropVals(returnParams);
i am using FDK7 for development
any idea ?
