Koda xml fehler

  • Hallo,
    ich habe erst mit koda angefangen und habe nun ein seltsames Problem:
    Es funktioniert zwar soweit alles, aber ich kann gespeicherte Formen nicht mehr öffnen. Bekomme jedesmal die Meldung XML stream read error.
    Wenn ich mir die Datei mit einem Editor ansehe sieht aber alles ok aus.

    Und gleich noche eine Frage.....kann man die Schriftart und Grösse vorgeben so das ich sie nicht bei jedem Element erst wieder ändern muss?

    Oliver

    • Offizieller Beitrag

    Hallo und :willkommen:,

    Das Problem mit der XML-Datei hatte ich auch mal, da wurde von Koda ein Wert gespeichert den er dann beim einlesen als Fehler interpretiert. Poste mal die kxf-Datei dann schau ich mal drüber.

    Deine 2. Frage bezieht sich bestimmt auch auf Koda oder ? Dort kann man keine Schriftart und Grösse vorgeben. Ich ändere die immer hinterher indem ich alle Objekte markiere (SHIFT + Maustaste) und dann die Schrift einstelle.

  • Hier ist der Code der diese Probleme macht:

    <object type="TAForm" name="AForm1">
    <properties>
    <property name="Left" vt="Int16">192</property>
    <property name="Top" vt="Int8">125</property>
    <property name="Width" vt="Int16">488</property>
    <property name="Height" vt="Int16">184</property>
    <property name="Caption" vt="String">Betriebsausweis</property>
    <property name="Color" vt="Ident">clBtnFace</property>
    <property name="Font.Charset" vt="Ident">DEFAULT_CHARSET</property>
    <property name="Font.Color" vt="Ident">clWindowText</property>
    <property name="Font.Height" vt="Int8">-16</property>
    <property name="Font.Name" vt="String">MS Sans Serif</property>
    <property name="Font.Style" vt="Set">fsBold</property>
    <property name="OldCreateOrder" vt="False">False</property>
    <property name="Visible" vt="True">True</property>
    <property name="Style" vt="Int32">-1798701056</property>
    <property name="ExStyle" vt="Int16">256</property>
    <property name="Version" vt="String">1.02</property>
    <property name="PixelsPerInch" vt="Int8">96</property>
    <property name="TextHeight" vt="Int8">20</property>
    </properties>
    <components>
    <object type="TALabel" name="ALabel1">
    <properties>
    <property name="Left" vt="Int8">20</property>
    <property name="Top" vt="Int8">20</property>
    <property name="Width" vt="Int16">140</property>
    <property name="Height" vt="Int8">25</property>
    <property name="Caption" vt="String">Vorname</property>
    <property name="TabOrder" vt="Int8">0</property>
    <property name="HaveVariable" vt="False">False</property>
    <property name="CtrlStyle" vt="Int32">1342177536</property>
    <property name="CtrlExStyle" vt="Int8">0</property>
    </properties>
    <components>
    </components>
    </object>
    <object type="TALabel" name="ALabel2">
    <properties>
    <property name="Left" vt="Int8">20</property>
    <property name="Top" vt="Int8">50</property>
    <property name="Width" vt="Int16">140</property>
    <property name="Height" vt="Int8">25</property>
    <property name="Caption" vt="String">Nachname</property>
    <property name="TabOrder" vt="Int8">1</property>
    <property name="HaveVariable" vt="False">False</property>
    <property name="CtrlStyle" vt="Int32">1342177536</property>
    <property name="CtrlExStyle" vt="Int8">0</property>
    </properties>
    <components>
    </components>
    </object>
    <object type="TALabel" name="ALabel3">
    <properties>
    <property name="Left" vt="Int8">20</property>
    <property name="Top" vt="Int8">80</property>
    <property name="Width" vt="Int16">140</property>
    <property name="Height" vt="Int8">25</property>
    <property name="Caption" vt="String">Personalnummer</property>
    <property name="TabOrder" vt="Int8">2</property>
    <property name="HaveVariable" vt="False">False</property>
    <property name="CtrlStyle" vt="Int32">1342177536</property>
    <property name="CtrlExStyle" vt="Int8">0</property>
    </properties>
    <components>
    </components>
    </object>
    <object type="TAInput" name="">
    <properties>
    <property name="Left" vt="Int16">160</property>
    <property name="Top" vt="Int8">20</property>
    <property name="Width" vt="Int16">300</property>
    <property name="Height" vt="Int8">25</property>
    <property name="TabOrder" vt="Int8">3</property>
    <property name="CtrlStyle" vt="Int32">1342242944</property>
    <property name="CtrlExStyle" vt="Int16">512</property>
    </properties>
    <components>
    </components>
    </object>
    <object type="TAInput" name="">
    <properties>
    <property name="Left" vt="Int16">160</property>
    <property name="Top" vt="Int8">50</property>
    <property name="Width" vt="Int16">300</property>
    <property name="Height" vt="Int8">25</property>
    <property name="TabOrder" vt="Int8">4</property>
    <property name="CtrlStyle" vt="Int32">1342242944</property>
    <property name="CtrlExStyle" vt="Int16">512</property>
    </properties>
    <components>
    </components>
    </object>
    <object type="TAInput" name="AInput3">
    <properties>
    <property name="Left" vt="Int16">160</property>
    <property name="Top" vt="Int8">80</property>
    <property name="Width" vt="Int16">300</property>
    <property name="Height" vt="Int8">25</property>
    <property name="TabOrder" vt="Int8">5</property>
    <property name="CtrlStyle" vt="Int32">1342242944</property>
    <property name="CtrlExStyle" vt="Int16">512</property>
    </properties>
    <components>
    </components>
    </object>
    <object type="TAButton" name="AButton1">
    <properties>
    <property name="Left" vt="Int16">160</property>
    <property name="Top" vt="Int8">110</property>
    <property name="Width" vt="Int8">80</property>
    <property name="Height" vt="Int8">25</property>
    <property name="Caption" vt="String">Drucken</property>
    <property name="TabOrder" vt="Int8">6</property>
    <property name="CtrlStyle" vt="Int32">1342259200</property>
    <property name="CtrlExStyle" vt="Int8">0</property>
    </properties>
    <components>
    </components>
    </object>
    </components>
    </object>

    Das wars......

    • Offizieller Beitrag

    Es liegt an den Zeilen

    Code
    <property name="CtrlStyle" vt="Int32">...</property>
    <property name="CtrlExStyle" vt="Int8">..</property>

    Die werden zwar von Koda eingetragen aber er kann sie (noch) nicht lesen!

    Spoiler anzeigen
    • Offizieller Beitrag

    Nach dem ich die Zeilen aus diener Datei glöscht hatte konnte ich sie ohne probleme wieder öffnen!

  • Habe nochmal die Original-Datei genommen und die Zeilen gelöscht. Gleiches Problem, danach habe ich die letzte Version (1.5.1.6) heruntergeladen...genau das gleiche Problem. Was verwendest Du für eine Version?

    • Offizieller Beitrag

    Hallo

    Also ich benutze auch die koda beta! bei mir geht alles!
    Schreibe das mal in eine kxf datei und guck ob er das öffnen kann:

    Spoiler anzeigen

    <object type="TAForm" name="AForm1">
    <properties>
    <property name="Left" vt="Int16">192</property>
    <property name="Top" vt="Int8">125</property>
    <property name="Width" vt="Int16">304</property>
    <property name="Height" vt="Int8">86</property>
    <property name="Caption" vt="String">AForm1</property>
    <property name="Color" vt="Int32">5197568</property>
    <property name="Font.Charset" vt="Ident">DEFAULT_CHARSET</property>
    <property name="Font.Color" vt="Ident">clWindowText</property>
    <property name="Font.Height" vt="Int8">-11</property>
    <property name="Font.Name" vt="String">MS Sans Serif</property>
    <property name="Font.Style" vt="Set"></property>
    <property name="OldCreateOrder" vt="False">False</property>
    <property name="Visible" vt="True">True</property>
    <property name="Style" vt="Int32">276824576</property>
    <property name="ExStyle" vt="Int16">256</property>
    <property name="Version" vt="String">1.01</property>
    <property name="PixelsPerInch" vt="Int8">96</property>
    <property name="TextHeight" vt="Int8">13</property>
    </properties>
    <components>
    <object type="TAProgress" name="AProgress1">
    <properties>
    <property name="Left" vt="Int8">8</property>
    <property name="Top" vt="Int8">8</property>
    <property name="Width" vt="Int16">278</property>
    <property name="Height" vt="Int8">16</property>
    <property name="Constraints.MaxWidth" vt="Int32">1342308352</property>
    <property name="Position" vt="Int8">25</property>
    <property name="TabOrder" vt="Int8">0</property>
    </properties>
    <components>
    </components>
    </object>
    <object type="TALabel" name="ALabel1">
    <properties>
    <property name="Left" vt="Int16">132</property>
    <property name="Top" vt="Int8">8</property>
    <property name="Width" vt="Int8">30</property>
    <property name="Height" vt="Int8">16</property>
    <property name="AutoSize" vt="False">False</property>
    <property name="Caption" vt="String">100%</property>
    <property name="Color" vt="Int32">5197568</property>
    <property name="Constraints.MaxWidth" vt="Int32">1342312448</property>
    <property name="Font.Charset" vt="Ident">DEFAULT_CHARSET</property>
    <property name="Font.Color" vt="Ident">clAqua</property>
    <property name="Font.Height" vt="Int8">-11</property>
    <property name="Font.Name" vt="String">MS Sans Serif</property>
    <property name="Font.Style" vt="Set"></property>
    <property name="ParentColor" vt="False">False</property>
    <property name="ParentFont" vt="False">False</property>
    <property name="TabOrder" vt="Int8">1</property>
    <property name="HaveVariable" vt="False">False</property>
    </properties>
    <components>
    </components>
    </object>
    <object type="TALabel" name="ALabel2">
    <properties>
    <property name="Left" vt="Int8">8</property>
    <property name="Top" vt="Int8">32</property>
    <property name="Width" vt="Int16">275</property>
    <property name="Height" vt="Int8">17</property>
    <property name="AutoSize" vt="False">False</property>
    <property name="Caption" vt="String">0/0 Kbits/s - </property>
    <property name="Constraints.MaxWidth" vt="Int32">1342308608</property>
    <property name="Font.Charset" vt="Ident">DEFAULT_CHARSET</property>
    <property name="Font.Color" vt="Ident">clAqua</property>
    <property name="Font.Height" vt="Int8">-11</property>
    <property name="Font.Name" vt="String">MS Sans Serif</property>
    <property name="Font.Style" vt="Set"></property>
    <property name="ParentFont" vt="False">False</property>
    <property name="TabOrder" vt="Int8">2</property>
    <property name="HaveVariable" vt="False">False</property>
    </properties>
    <components>
    </components>
    </object>
    </components>
    </object>

    Mfg Spider