VB.NET如何在不运行office应用程序的情况下打印office文档列表。 [英] VB.NET How to print a list of office documents without running the office applications.

查看:82
本文介绍了VB.NET如何在不运行office应用程序的情况下打印office文档列表。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Hi Team,

VB新手在这里。

我在VB.Net(VS 2013)中创建了一个表格。

在此表格我有一个Listview对象。

此对象包含不同类型的办公文档列表。

例如工作,Excel,Visio等



表格中添加了一个打印按钮。

我现在缺少的是打印代码。



有没有办法可以将这些文件打印到默认打印机?



我试过了一些例子,但我发现它们是很难混淆。



干杯,

dg

Hi Team,
VB newbie here.
I have created a form in VB.Net (VS 2013).
In this form I have a Listview object.
This object contains a list of office documents of different types.
eg Work, Excel, Visio etc

A print button has been added to the form.
What I am now missing is the "print" code.

Is there a way that I can print these files to the default printer?

I have tried following some of the examples, but I am finding them a little confusing.

cheers,
dg

推荐答案

嗯,你必须运行Office应用程序来打印文档。还有什么用于打开文档,解析它们以呈现页面并打印它们?没有Office,你没有知道如何解释和呈现文档的代码!



你不一定需要Office,但你需要一些知道它的库Office文档格式并知道如何正确呈现它们。
Well, you HAVE to run the Office applications to print the documents. What else are you going to use to open the documents, parse them to render the page and printer them?? Without Office, you have no code that knows how to interpret and render the documents!

You don't neccessarily need Office, but you will need some library that knows the Office document formats and knows how to render them correctly.


这篇关于VB.NET如何在不运行office应用程序的情况下打印office文档列表。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆