Skip to main content
Bubbly_Crystal0D4D
Participating Frequently
May 15, 2015
Question

Error while using F_ApiCallClient()

  • May 15, 2015
  • 1 reply
  • 324 views

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;

  }

}

This topic has been closed for replies.

1 reply

ScottPrentice
Inspiring
May 15, 2015

I've never done this via the FDK, so can't offer any ideas. If you don't get help on this forum, you might try posting to the "frame_dev" Yahoo group.

...scott

Bubbly_Crystal0D4D
Participating Frequently
May 15, 2015

Thanks for guiding me to the right forum Scott, much appreciated