word文档打印预览有阴影_在打印预览中编辑Word文档

word文档打印预览有阴影

While viewing a Word document in the Print Preview window, you might notice a typo, or something else that you'd like to fix quickly, before printing.

在“打印预览”窗口中查看Word文档时,在打印之前,您可能会注意到输入错误或您想要快速修复的其他问题。

However, the pointer is a magnifying glass, and when you click on the page you just zoom in or out.

但是,指针是一个放大镜,当您单击页面时,只是放大或缩小。

要编辑文档,您可以关闭放大镜: (To edit the document, you can turn off the magnifier:)

In Excel 2007, remove the check mark from Magnifier in the Ribbon, to turn it off.

Excel 2007中 ,从功能区中的“放大镜”中删除选中标记以将其关闭。

In Excel 2003, click the Magnifier button on the toolbar, to turn it off.

Excel 2003中 ,单击工具栏上的“放大镜”按钮将其关闭。

After you turn off the Magnifier, the pointer will change to an I-beam, and you can click on the document and edit it.

关闭放大镜后,指针将变为I型光束,您可以单击文档并进行编辑。

翻译自: https://contexturesblog.com/archives/2009/01/30/edit-a-word-document-in-print-preview/

word文档打印预览有阴影

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
在C#,可以使用Microsoft.Office.Interop.Word和ADO.NET库来实现从数据库读取数据,并根据数据生成Word文档打印。下面是一个简单的示例代码,可以从数据库读取数据,将数据插入到Word文档,然后打印出来: ```csharp using Microsoft.Office.Interop.Word; using System.Data.SqlClient; // 声明Word应用程序对象 Application wordApp = new Application(); Document wordDoc = null; // 声明数据库连接字符串 string connString = "Data Source=yourServer;Initial Catalog=yourDatabase;User ID=yourUsername;Password=yourPassword"; // 声明SQL查询语句 string sql = "SELECT * FROM yourTable"; try { // 打开数据库连接 using (SqlConnection conn = new SqlConnection(connString)) { conn.Open(); // 执行SQL查询 using (SqlCommand cmd = new SqlCommand(sql, conn)) { SqlDataReader reader = cmd.ExecuteReader(); // 创建一个新的Word文档 wordDoc = wordApp.Documents.Add(); // 将查询结果插入到Word文档 while (reader.Read()) { wordDoc.Content.Text += reader.GetString(0) + "\t" + reader.GetString(1) + "\r\n"; } reader.Close(); } // Word文档 wordDoc.PrintPreview(); // 打印Word文档 wordDoc.PrintOut(); // 关闭Word文档 wordDoc.Close(false); } } catch (Exception ex) { Console.WriteLine("Error: " + ex.Message); } finally { // 关闭Word应用程序 wordApp.Quit(false); } ``` 注意:在使用ADO.NET库时,需要确保你的计算机上已经安装了适当的数据库驱动程序。

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值