Issue with compiling projects in FNC WX trial

I have installer trial versions of FNC UI Pack and the FNC WX pack. I am unable to compile any demos (VCL). It complains that the unit was compiled with a different version. Both the trials were downloaded today. THe HTML Memo Advanced demo requires the FNC UI pack, which is why I downloaded and installed the trial. How can we evaluate the FNC WX suite? We are registered customers of TMS Webcore and UI Pack (These are ofcourse on a different machine because I know the registered versions cannot co-exist with trials). Can you please help?

A trial cannot be installed alongside another trial or registered version. the trial version includes a precompiled TMS FNC Core, which is the reason for the errors. You should make sure that it cannot find other instances of TMS FNC Core, by temporarily disabling the library path.

I dont have FNC Core installed on this machine. Is it part of the FNC UI Pack? Not sure I understand what you mean by "temporarily disabling the library path".

If you have installed trial versions of TMS FNC UI Pack and TMS FNC WX Pack, you have double TMS FNC Core installations because TMS FNC Core is included in the trial distribution. You need to disable one of the 2 library paths in the IDE to avoid the compilation issue, or install one of the 2. You can only test one trial version at a time.

Thanks Pieter,

Its working now if its the only FNC component on the machine. Basically a trial version cannot co-exist with any other FNC suite whether registered or trial. Just as feedback, its tough for us to explore the full range of the product with such restrictions. Especially when we need to integrate the component into our existing product to see if the solution works.

Is it possible to manupilate the DOM in the HTMLMemo component programatically? Basically we have a requirement to create a HTML WYSIWYG editor which we can control through code and thorugh user input. And once the "report" is saved we need to convert it into a PDF. A common code base for both Webcore version and the Windows App Is there a set of component(s) in the TMS family that we can use to accomplish this?

Any pointers or updates?

Hi,

For manipulating the DOM, you can either set the text via the HTML property in a string format, or you can attempt to execute javascript directly:

type
  TTMSFNCWXHTMLMemoOpen = class(TTMSFNCWXHTMLMemo);

procedure TForm2.Button1Click(Sender: TObject);
begin
  TTMSFNCWXHTMLMemoOpen(TMSFNCWXHTMLMemo1).ExecuteJavaScript('let elem = document.getElementsByClassName("note-editable")[0];');
  TTMSFNCWXHTMLMemoOpen(TMSFNCWXHTMLMemo1).ExecuteJavaScript('elem.appendChild(document.createElement("div"))');
end;

However, converting the resulting HTML into a PDF is not currently supported because the underlying library is using more HTML elements and complex constructs that what our TMSFNCPDFLib cannot handle. It's on our TODO list to research how text from TTMSFNCWXHTMLMemo can be saved into a PDF.