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.81 MB
Time: 0.042 c
1-22019
Hex_for_delphi
2001-12-17 20:21
2002.01.08
How to write a trainer!


1-22093
Bristol
2001-12-19 11:59
2002.01.08
sending letters using Delphi 5


1-22124
abandon
2001-12-18 02:16
2002.01.08
Tags on jpg, bmp it.d.


1-22244
Socol
2001-12-15 15:42
2002.01.08
Download file!


6-22308
Igor
2001-10-14 09:44
2002.01.08
Data exchange between client and server in Delphi





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