When following the code example, Aspose.OMR for .net states that AnswersString is not a valid property.
new ChoiceBoxConfig() {
QuestionText = "On a scale of 5 to 1, how do you feel?",
AnswersString = "(5)(4)(3)(2)(1)"
}
When following the code example, Aspose.OMR for .net states that AnswersString is not a valid property.
new ChoiceBoxConfig() {
QuestionText = "On a scale of 5 to 1, how do you feel?",
AnswersString = "(5)(4)(3)(2)(1)"
}
Hello, @cehmsystems
I am sorry, there is a mistake in documentation, which will be corrected shortly.
Correct syntax below:
var choiceBox = new ChoiceBoxConfig();
choiceBox.Name = "Satisfaction";
choiceBox.QuestionText = "Are satisfied with your experience?";
var yes = new ChoiceBoxAnswerConfig()
{
Name = "Yes",
BubbleValue = "Y",
};
choiceBox.Children.Add(yes);
var no = new ChoiceBoxAnswerConfig()
{
Name = "No",
BubbleValue = "N",
};
choiceBox.Children.Add(no);
var notSure = new ChoiceBoxAnswerConfig()
{
Name = "Not sure",
BubbleValue = "S",
};
choiceBox.Children.Add(notSure);
var page = new PageConfig();
page.Children.Add(choiceBox);
var templateConfig = new TemplateConfig();
templateConfig.Children.Add(page);
GenerationResult res = engine.Generate(templateConfig);
example.png (53.6 KB)
Thank you, that mostly worked. One question I have, I am doing a 1-10 point rating and it appears, with the code below, the bubble with the 10 in it is only showing a 1. Is there a way to change the bubble size on the ChoiceBoxAnswerConfig?
var choiceBoxConfig = new ChoiceBoxConfig()
{
Name = "Wessel",
DisplayQuestionNumber = false,
QuestionText = $"Please provide a rating for the award (1 is the lowest rating and 10 is the highest)",
FontSize = 10,
FontStyle = Aspose.OMR.Generation.FontStyle.Regular,
};
for (int i = 1; i <= 10; i++)
{
choiceBoxConfig.Children.Add(new ChoiceBoxAnswerConfig()
{
BubbleValue = $"{i}",
});
}
Thank you, for interest in our product!
Unfortunately, multiple symbols per bubble is not supported at the moment.
I have added this feature in the development queue and will post details regarding its progress here.
@cehmsystems
We have opened the following new ticket(s) in our internal issue tracking system and will deliver their fixes according to the terms mentioned in Free Support Policies.
Issue ID(s): OMRNET-1156
You can obtain Paid Support Services if you need support on a priority basis, along with the direct access to our Paid Support management team.