on 05-07-2008 4:18 PM
I'm trying to retreive the FontSize property from a form item. But it returns a -1.
I have tried:
>ReadOnly Property FormItemFontSize() As Integer
>
> Get
>
> oForm = oSboApp.Forms.Item(FormUID_PropVal)
> oFormItem = oForm.Items.Item(ItemUID_PropVal)
> Return oFormItem.FontSize
>
> End Get
>
>End Property
...and:
> intB1FontSize = oSboApp.Forms.Item(FormUID).Items.Item("230").FontSize
I don't know about older versions, but in 2007a this seems to be stored in C:\Documents and Settings\<username>\Local Settings\Application Data\SAP\SAP Business One\b1-current-user.xml
I'm using a C# add-on and I used Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData) to get the Application data folder, read the file, and then used an XMLDocument to parse the XML and retrieve the font.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Paul,
when you create a form per default the font_size for the item is -1
for example look in your screenpainter created xml.
overwrite it and save the xml again to have the real size in the xml
regards
David
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
107 | |
12 | |
11 | |
6 | |
5 | |
4 | |
4 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.