Error while using F_ApiCallClient()
Hi All,
Using the fdk i'm trying to generate a structured document .I have the id of both unstructured fm file and conversion table.fm file. This is my code but i cannot see the output (structured) file anywhere.Can anyone tell me what I'am doing wrong in this? What i have tried so far:
VoidT F_ApiInitialize(init)
IntT init;{
F_ObjHandleT classBookMenuId;
F_ObjHandleT inputDocId, ruleTblDocId;
F_PropValsT params, *returnParamsp = NULL;
UCharT msg[256];
UCharT buf[64];
/* Making it unicode enabled. */
F_FdeInit();
F_ApiEnableUnicode(True);
F_FdeInitFontEncs("UTF-8");
switch(init){
case FA_Init_First:
inputDocId = F_ApiSimpleOpen((StringT)"D:/FrameTest/abc.fm", False);
ruleTblDocId=F_ApiSimpleOpen((StringT)"D:/FrameTest/new_conv.fm", False);
if (!inputDocId || !ruleTblDocId)
F_ApiAlert((StringT)"Couldn’t open.",FF_ALERT_CONTINUE_NOTE);
else
{
F_ApiCallClient("Structure Generator", "inputDocId");
F_ApiCallClient("Structure Generator", "ruleTblDocId");
F_ApiCallClient("Structure Generator", "D:/FrameTest/new_doc.fm"); // this line not working i suppose
F_ApiCallClient("Structure Generator", "StructureDoc");
}
break;
}
}
