Guten Tag Zusammen
Ich habe hier ein Programm welches Formulare abfüllt und dazu werden alle Textboxen, Comboboxen und so weiter nachdem absenden zu Word in ein File gespeichert um diese als Entwurf abzurufen. Beim Aufrufen des Entwurfs wird dann alles wieder in die Felder gefüllt un da kommen wir schon zu meinem Problem. Ich habs irgendwie schlussendlich hingekriegt die DateTimePicker durch die Arrays und so weiter richtig zu formatieren aber ComboBoxen wollen bei mir einfach nicht. in der Datei steht immer das der selektierte Wert 0 ist und so wirds dann auch nicht ausgefüllt. Anzumerken ist vielleicht das die Werte in einer lokalen Datenbank sind welche man erweitern kann. Diese werden dann mit einer Art Intellisense für alle Felder vorgeschlagen wenn man etwas ähnliches eingibt. Den Code zum abfüllen in die Datei:
Zum Importieren ins Programm:
parts ist das Array welches aus der Datei heraus mit den Werten abgefüllt wird.
Kann mir wer sagen was es zu beachten gibt oder was ich falsch mache? Bei den Comboboxen welche feste Werte haben die nicht in der Datenbank sind funktioniert es nur halbwegs, scheint so als würde es manchmal abfüllen und manchmal nicht, ich geh dem noch nach.
mfg
Orion
Ich habe hier ein Programm welches Formulare abfüllt und dazu werden alle Textboxen, Comboboxen und so weiter nachdem absenden zu Word in ein File gespeichert um diese als Entwurf abzurufen. Beim Aufrufen des Entwurfs wird dann alles wieder in die Felder gefüllt un da kommen wir schon zu meinem Problem. Ich habs irgendwie schlussendlich hingekriegt die DateTimePicker durch die Arrays und so weiter richtig zu formatieren aber ComboBoxen wollen bei mir einfach nicht. in der Datei steht immer das der selektierte Wert 0 ist und so wirds dann auch nicht ausgefüllt. Anzumerken ist vielleicht das die Werte in einer lokalen Datenbank sind welche man erweitern kann. Diese werden dann mit einer Art Intellisense für alle Felder vorgeschlagen wenn man etwas ähnliches eingibt. Den Code zum abfüllen in die Datei:
Zum Importieren ins Programm:
parts ist das Array welches aus der Datei heraus mit den Werten abgefüllt wird.
Kann mir wer sagen was es zu beachten gibt oder was ich falsch mache? Bei den Comboboxen welche feste Werte haben die nicht in der Datenbank sind funktioniert es nur halbwegs, scheint so als würde es manchmal abfüllen und manchmal nicht, ich geh dem noch nach.
mfg
Orion