Free Support Forum - aspose.com

Aspose.OMR Create Template from markup text Problem

Dear Sir

I am trying to generate an OMR template from markup text with the following

Code:
Dim FolderPath As String = Server.MapPath("~/departmentapp/omr/template/")
Dim outputPath As String = Server.MapPath("~/departmentapp/omr/template/")

Dim lib_path As String = HttpContext.Current.Server.MapPath("~/") & “resources\library\Aspose.OMR.NET.lic”

Dim OMR_lic As New Aspose.OMR.License
OMR_lic.SetLicense(lib_path)

Debug.Print(template_filename)

'------------------------------------------------------------------------------------------------------------------
Dim engine As OmrEngine = New OmrEngine()
Dim res As GenerationResult = engine.GenerateTemplate(Path.Combine(outputPath, template_filename))

If res.ErrorCode <> 0 Then
Debug.Print("ERROR CODE: " & res.ErrorCode)
End If

res.Save(outputPath, template_filename.Replace(".txt", “”))

Text
?answer_sheet=Questions

elements_count=60

columns_count=3

start_id=51

answers_count=5

But the result is not good. Please check the attached filetemplate.zip (1.6 KB)

Regards

Churchill

@churchilllee

Do you have any desired output as well with which we can compare the results generated by the API? If so, please share it with us so that we can try to generate the similar one and share our feedback with you.

3c4b547b-0ee8-4c8d-8f14-af367b7877bf.png (190.5 KB)

I want to create 60 questions with 4 choices

Regards

Churchill

@churchilllee

We were able to notice the issue in our environment while testing the scenario and have logged it as OMRNET-119 in our issue tracking system. We will further look into its details and keep you posted with the status of ticket resolution. Please be patient and spare us some time.

We are sorry for the inconvenience.

@churchilllee

We have investigated the earlier logged ticket and found that the issue was in your text markup file. You were using spaces instead of tabs. Please check the revised version of the markup file where we replaced the spaces with tabs.

20201229230946_omr.zip (257 Bytes)

We will also support text markups with spaces in the future releases of the API.