Autor Beitrag
GSE
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 740

Win 2k, Win XP Pro
D5 Prof, D6 Ent, D2k5 PE
BeitragVerfasst: Sa 15.05.04 14:01 
Gruß,
ich steuer Word über die Delphi Server Kompos an, wi ebekomm ich hin das die Tabelle die ich mit diesem Code erstellt haben über die ganze Seite geht, mit AutoFit passt er ja immer die Spalten an die Größe an, die Tabelle geht aber nicht über die ganze Seite. Und mit t.Columns.Width sind alle Spalten ja gleich groß und nicht an deren Inhalt angepasst (AutoFit).

Eigentlich müsste mein Code irrelevant sein ,aber ich poste ihn trotzdem mal hierhin.
[Edit]Code entfernt da er nicht zur Lösung beigetragen hat. Außerdem ist das Topic jetzt kompakter[/Edit]

Danke schon im Vorraus

mfg
GSE

_________________
Programming today is a race between software engineers striving to build bigger and better idiot-proof programs
and the universe trying to produce bigger and better idiots. So far, the universe is winning. (Richard Cook)


Zuletzt bearbeitet von GSE am Sa 15.05.04 18:48, insgesamt 2-mal bearbeitet
Keldorn
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 2266
Erhaltene Danke: 4

Vista
D6 Prof, D 2005 Pro, D2007 Pro, DelphiXE2 Pro
BeitragVerfasst: Sa 15.05.04 17:08 
Hallo,

wenn ich ein makro aufzeichne, steht da AutoFitBehavior (auf die Tablle angewandt, nicht auf die Spalte). ob das so auch in delphi geht, weiß ich aber nicht, probiers einfach aus .

Mfg Frank

_________________
Lükes Grundlage der Programmierung: Es wird nicht funktionieren.
(Murphy)
GSE Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 740

Win 2k, Win XP Pro
D5 Prof, D6 Ent, D2k5 PE
BeitragVerfasst: Sa 15.05.04 18:10 
Hey Danke, das geht: :P

ausblenden Delphi-Quelltext
1:
t.AutoFitBehavior(vTemp);					

musste zwar vTemp auf 2 (?) setzen aber so funktionierts.
Ich war eigentlich nur irritiert, da die AutoFormat Funktion nen Parameter "AutoFit" hat, der aber nichts bewirkt (jedenfalls bei mir net). Und bei Behavior, hatte ich nich an so was gedacht (Verhalten?)).

Nochmals thx.

mfg
GSE

_________________
Programming today is a race between software engineers striving to build bigger and better idiot-proof programs
and the universe trying to produce bigger and better idiots. So far, the universe is winning. (Richard Cook)
Keldorn
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 2266
Erhaltene Danke: 4

Vista
D6 Prof, D 2005 Pro, D2007 Pro, DelphiXE2 Pro
BeitragVerfasst: Sa 15.05.04 18:24 
GSE hat folgendes geschrieben:


ausblenden Delphi-Quelltext
1:
t.AutoFitBehavior(vTemp);					

musste zwar vTemp auf 2


Zeichne dir ein makro auf, dann siehst du die entsprechende konstante.

_________________
Lükes Grundlage der Programmierung: Es wird nicht funktionieren.
(Murphy)
GSE Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 740

Win 2k, Win XP Pro
D5 Prof, D6 Ent, D2k5 PE
BeitragVerfasst: Sa 15.05.04 18:46 
Zitat:
Zeichne dir ein makro auf, dann siehst du die entsprechende konstante.
Werd ich mir merken, müsste ja dann überall in Office funktionieren.

mfg
GSE

_________________
Programming today is a race between software engineers striving to build bigger and better idiot-proof programs
and the universe trying to produce bigger and better idiots. So far, the universe is winning. (Richard Cook)