Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: C#3.0 C# C#4.0
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.
Posted 2-Feb-13 1:10am
Edited 2-Feb-13 1:32am
v3

1 solution

Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

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.
  Permalink  

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 Sergey Alexandrovich Kryukov 458
1 OriginalGriff 294
2 George Jonsson 258
3 CPallini 160
4 Shemeemsha RA 140
0 OriginalGriff 5,985
1 Sergey Alexandrovich Kryukov 5,341
2 CPallini 4,760
3 George Jonsson 3,400
4 Gihan Liyanage 2,522


Advertise | Privacy | Mobile
Web02 | 2.8.140916.1 | Last Updated 2 Feb 2013
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100