Home > Back-end >  How to implement in the table of word set a cell text content using different fonts
How to implement in the table of word set a cell text content using different fonts

Time:09-26

Such as in the word's table in a cell inside a paragraph, if the content is "the bed Ming moonlight doubt is the ground frost"
How do I realize: "bed bright moonlight" with coarse "tahoma"
"Doubt is the ground frost" with a "regular script _GB2312"

The answer to genuflect is begged!!!!!!

CodePudding user response:

Is there no expert here???

CodePudding user response:

I am not a master, can only give some hints,

Word documents, you know, Delphi operators can change the font selection, if you can use the program table. The selected cell (x, y). The part of the text content, and then to change the selection type, maybe can do it,

CodePudding user response:

Fword: twordapplication;//object word
Fword. Selection. The font. The name:=fontname;

The fword. Selection. The font, size: fontsize=;

If fontbold then

Fword. Selection. The font. Bold:=wdtoggle;

CodePudding user response:

Answer for 2 3 floor two friends, your way of thinking I also tried, no, don't know if there are no other methods

CodePudding user response:

Meet the same problem, the building Lord solved? O O (studying studying) thank you
  • Related