使用C#的XPS文档 [英] XPS document using C#

查看:483
本文介绍了使用C#的XPS文档的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用 C#创建 XPS 文档,这很好,但创建的文档大小很高,

例如文档由1页和文档大小近500kb组成,

我们的应用程序中的文件大小 请帮助通过编码减小文档大小。< br $> b $ b

希望我能为您提供一个很好的解决方案,



感谢大家,

Banda。

I am creating XPS document using C#, that''s fine but created document size is going high,
For example the document consists of 1 page and document size nearly 500kb,
file size maters in our application please help to decrease size of the document through coding.

Hope i would get a good solution from you all,

Thanking you all,
Banda.

推荐答案

没有你的代码,知道你在文件中保存了什么,我们真的不能帮到你。 />


但是,如果极端大小是一个问题,那么XPS可能是错误的格式:一个只包含单词Hello的简单XPS文件。由Word2010创建的是83Kb,并添加一个11K的小JPG,最多可达93KB。如果你存储错误的信息,那么XPS可能是一个糟糕的选择。



文件的大部分可能是开销,允许它工作任何系统 - 字体等 - 并选择不同的格式可能会大大减少这种情况。
Without your code, and knowing what you are saving in the file, we can''t really help you very much.

However, if extreme size is a problem, then XPS may well be the wrong format for you: a simple XPS file containing only the word "Hello." created by Word2010 is 83Kb, and adding a tiny 11K JPG to that takes it up to 93KB. If you are storing the wrong info, then XPS may have been a bad choice.

It is possible that the bulk of the file is overhead which allows it to work on any system - fonts and suchlike - and choosing a different format may reduce this significantly.


这篇关于使用C#的XPS文档的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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