Create OMR file from code - error

I try create and save file using template in code (c# .net 6)
The OMR file created successfully but in saving its failed with error:
System.ArgumentException: ‘Unknown runtime implemented delegate method.: 9’

@RachelAi

Would you kindly share your complete sample code snippet with us so that we can test the scenario in our environment and address it accordingly.

This is my code:

OmrEngine omrEngine = new OmrEngine();
GlobalPageSettings globalPageSettings = new GlobalPageSettings()
{
PaperSize = PaperSize.A4,
};
TemplateConfig templateConfig = new TemplateConfig()
{
Children = new List() {
new PageConfig() {
Children = new List() {
new CheckBoxConfig() {
Name = “Choose how get our updates”,
BubbleSize = BubbleSize.Extrasmall,
FontSize = 10,
Children = new List() {
new ContentConfig() {
Name = “Mail”,
FontSize = 10
},
new ContentConfig() {
Name = “Fax”,
FontSize = 10
},
new ContentConfig() {
Name = “Post”,
FontSize = 10
}
}
}
}
}
}
};

        GenerationResult generationResult = omrEngine.GenerateTemplate(templateConfig, globalPageSettings);
        generationResult.SaveAsPdf("forms", "createDocTest.OMR");

@RachelAi

We are checking it and will get back to you shortly.

1 Like

@RachelAi

We were able to reproduce the issue in our environment. Therefore, it has been logged as:

Issue ID(s): OMRNET-759

We will look into its details and keep you posted with the status of its correction. Please be patient and spare us some time.

We are sorry for the inconvenience.

@RachelAi

We would like to share with you that the issue has been resolved in 23.3.1 hotfix.