Home
Top.Mail.Ru Yandeks.Metrika
Forum: "Main";
Current archive: 2002.01.08;
Download: [xml.tar.bz2];

Down

Tables in MS Word Find similar branches


som   (2001-12-19 12:40) [0]

How to resize a column in a table ???



borisich   (2001-12-19 13:45) [1]

unit ...;

interface

uses
... Word2000, OleServer, Word97;

type
TForm1 = class (TForm)
.
.
.
WordApplication1: TWordApplication;
WordDocument1: TWordDocument;
public
procedure ChangeSizeColumn;
end;

was
Form1: TForm1;

implementation

{$ R * .dfm}

Procedure Form1.ChangeSizeColumn;
was
Template,
NewTemplate,
ItemIndex: OleVariant;
par: Paragraph;
Tab: table;
colum: Column;
begin
// Start the Word
WordApplication1.Connect;
WordApplication1.Visible: = True;
Template: = EmptyParam;
NewTemplate: = False;
ItemIndex: = 1;
WordApplication1.Documents.Add (Template, NewTemplate);
WordDocument1.ConnectTo (WordApplication1.Documents.Item (ItemIndex));
WordApplication1.Options.CheckSpellingAsYouType: = False;
WordApplication1.Options.CheckGrammarAsYouType: = False;
Par: = WordDocument1.Paragraphs.Add (EmptyParam);

// create table
tabl: = WordDocument1.Tables.Add (par.Range, 1, 2);
// 1 - number of rows, 2 - number of columns

// Select the column
colum: = tabl.Columns.Item (1);

// Set its size cm translate to pound
colum.Width: = 3.78 * 28.35;


end;



Pages: 1 whole branch

Forum: "Main";
Current archive: 2002.01.08;
Download: [xml.tar.bz2];

Top





Memory: 0.54 MB
Time: 0.02 c
3-21934
Alexsyy
2001-12-04 08:52
2002.01.08
Help me please


6-22294
s
2001-10-10 13:50
2002.01.08
SOAP examples


1-22079
kserg@ukr.net
2001-12-19 13:11
2002.01.08
How to correctly associate a button with ToolBara with a menu item in MainMenu?


1-22137
AlexandrH_
2001-12-20 08:06
2002.01.08
How to manage focus in StringGride.


14-22350
Hedgehog
2001-11-04 16:49
2002.01.08
I sit here, and nothing to do!





afrikaans albanian Arabic armenian azerbaijani basque belarusian bulgarian catalan Chinese (Simplified) Chinese (Traditional) croatian Czech danish Dutch English estonian filipino finnish French
galician georgian German greek haitian Creole hebrew Hindi hungarian icelandic indonesian Irish italian Japanese Korean latvian lithuanian macedonian malay maltese norwegian
persian polish portuguese Romanian russian serbian slovak Slovenian Spanish swahili Swedish thai turkish Ukrainian urdu vietnamese welsh yiddish bengali bosnian
cebuano Esperanto gujarati hausa hmong igbo javanese kannada Khmer lao latin maori marathi mongolian nepali punjabi somali tamil telugu yoruba
zulu
English French German Italian Portuguese Russian Spanish