1,公式怎么可以垂直居中排列?
2、在TRxRichedit,有时图片显示不全,怎么回事
3、有没有更好的替代控件,能够类似于word的最好? 但是用ole嵌入word,看网友的评论都不太好急盼高手帮忙!!!!
2、在TRxRichedit,有时图片显示不全,怎么回事
3、有没有更好的替代控件,能够类似于word的最好? 但是用ole嵌入word,看网友的评论都不太好急盼高手帮忙!!!!
解决方案 »
- fastreport 链式纸打印时,前几张对准了,后面的就对不准了,会有偏差, 是怎么回事?
- 接分接得手发酸~休息一下,放分恭喜老妖~
- 两个最基本的问题,急!
- Tdatetimepicker控件的焦点控制(年、月、日)问题
- 高分求助!线程怎么用啊,我加了一个thread object对象,怎么启动这个线程啊,是在别的unit里面启动吗?谢谢
- 一道小学题
- 简单问题
- 能否让combobox.items中显示的和选择的不一样???
- 两个问题,大虾请拿分
- shellexecute和winexec有什么区别?
- 用了vclskin皮肤后,QuickRep问题
- CopyFile的问题,是否是Delphi的Bug呢?
如何用word呢,能给个思路吗?
Delphi操作Wrod的几个知识点var
wApp,work:Variant; try
wApp:=GetActiveOleObject('word.Application');
except
wApp:=CreateOleObject('word.Application');
end;//---------------替换字符-------------------- wApp.selection.find.text:='<%a2%>';
wApp.selection.find.replacement.text:=lb;
wApp.selection.find.execute(replace:=wdReplaceAll);//----------------------隐藏WORD菜单和工具栏----------------------if OC.State in [osUIActive] then
begin
OC.OleObjectInterface.QueryInterface(IOleInPlaceObject,IOO);
IOO.UIDeactivate;
IOO :=nil;
end;//-----------------根据书签导数据------ wApp.Selection.GoTo(What:=wdGoToBook,Name:='ZCZD'+IntToStr(i));
wApp.Selection.typetext('■')//-------------------生成页眉页脚并写入数据---------- wApp.Selection.GoTo(What:=wdGoToPage, Which:=wdGoToNext, Name:='FLAG');
If wApp.ActiveWindow.View.SplitSpecial <> wdPaneNone Then
wApp.ActiveWindow.Panes(2).Close;
If (wApp.ActiveWindow.ActivePane.View.Type = wdNormalView) Or (wApp.ActiveWindow.ActivePane.View.Type = wdOutlineView) Then
wApp.ActiveWindow.ActivePane.View.Type := wdPrintView;
wApp.ActiveWindow.ActivePane.View.SeekView := wdSeekCurrentPageHeader;
wApp.Selection.ParagraphFormat.Borders.item(wdBorderLeft).LineStyle := wdLineStyleNone;
wApp.Selection.ParagraphFormat.Borders.item(wdBorderRight).LineStyle := wdLineStyleNone;
wApp.Selection.ParagraphFormat.Borders.item(wdBorderTop).LineStyle := wdLineStyleNone;
wApp.Selection.ParagraphFormat.Borders.item(wdBorderBottom).LineStyle := wdLineStyleNone;
wApp.ActiveWindow.ActivePane.View.SeekView := wdSeekCurrentPageFooter;
wApp.Selection.ParagraphFormat.Alignment := wdAlignParagraphRight;
if (DM.XM_DS.FieldByName('tg_flag').AsInteger = 2) and (DM.XM_DS.FieldByName('tj_flag').AsInteger = 0) then
wApp.Selection.TypeText(Text:='合`格`任`务`书')
else
wApp.Selection.TypeText(Text:='不合格任务书');
wApp.ActiveWindow.ActivePane.View.SeekView := wdSeekMainDocument;