这儿有没有Word高手?我把一个html文件另存为doc文件能够保持原有格式,但粘贴到其它doc文件里格式就变了。请帮忙解决(50分)

  • 主题发起人 主题发起人 science
  • 开始时间 开始时间
S

science

Unregistered / Unconfirmed
GUEST, unregistred user!
html文件的内容是:

<HTML><HEAD>
<TITLE>File: WAVEIO.pas </TITLE>
<META NAME="GENERATOR" CONTENT="PasToHTML(Bystricky Vladimir)">
</HEAD>
<BODY BGCOLOR="#FFFFFF">
<A NAME=WAVEIO.pas><CENTER><H3>WAVEIO.pas</H3></CENTER></A>
<HR>
<PRE>
<B>const</B> InBufnum     = 6;
   OutBufnum     = 6;
   BufTime      = 50;
   BitsPerSample   = 16;
   Channels     = 1;
   SamplesPerSec   = 22050;
   <I><FONT COLOR="Navy">{$EXTERNALSYM HEAP_ZERO_MEMORY}</FONT></I>
   HEAP_ZERO_MEMORY = $00000008;

</PRE>
</BODY>
</HTML>


直接转换为doc文件,中文字体设为宋体,西文字体设为Courier New,字号五号,效果如下:

const InBufnum     = 6;
   OutBufnum     = 6;
   BufTime      = 50;
   BitsPerSample   = 16;
   Channels     = 1;
   SamplesPerSec   = 22050;

粘贴到其它文件,效果如下:
const InBufnum     = 6;
   OutBufnum     = 6;
   BufTime     = 50;
   BitsPerSample   = 16;
   Channels     = 1;
   SamplesPerSec   = 22050;

我要它和原来一样,应该这么办?
 
你粘贴到其它文件也是要设字体的。一样的事
 
粘贴后字体没变,
Courier New的空格原来是和字母等宽的,粘贴后宽度就变了。
 
后退
顶部