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.55 MB
Time: 0.02 c
1-22163
Marina
2001-12-20 16:29
2002.01.08
Month names


3-21993
Кнопка
2001-12-07 09:23
2002.01.08
Search in database (Very urgent !!!)


6-22271
Victor
2001-10-04 20:15
2002.01.08
there was no remote connection during the connection ????


1-22247
as
2001-12-17 11:29
2002.01.08
Help someone can .....


3-21985
Scully
2001-12-06 15:26
2002.01.08
Date + time without seconds in DBGrid





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 Español 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