Hi Paul,
thank you ...
This morning I encountered another problem with the typewriter tool. Using the methods 'GetProperty' and 'SetProperty' I am able to modify the font size of the Char container programmatically. When I set the font size property with:
Code: Select all
AxCoPDFXCview1.SetProperty("Commenting.Typewriter.Styles[0].TextFormat.Char.FontSize", PDFToolSettings.TypewriterFontSize, 0)
everything works perfect and I'm able to set the font size via source code.
But when I try to get the property of the font size with:
Code: Select all
AxCoPDFXCview1.GetProperty("Commenting.Typewriter.Styles[0].TextFormat.Char.FontSize", vDataOut)
I don't get the correct value set by the user using this tool previously.
On the other hand if I set the value through code (see first code line) and then read the new value I get the correct font size value:
Code: Select all
AxCoPDFXCview1.SetProperty("Commenting.Typewriter.Styles[0].TextFormat.Char.FontSize", PDFToolSettings.TypewriterFontSize, 0)
AxCoPDFXCview1.GetProperty("Commenting.Typewriter.Styles[0].TextFormat.Char.FontSize", vDataOut)
MsgBox(vDataOut)
In my opinion there is a problem reading the font size value set by the user via front end. Could you check that, please? If there's a bug indeed it should also work for the other contained objects of the Chr container as well.
Thank you!
Best,
Martin