Results 1 to 6 of 6

Thread: A3 XPS files do not print properly with PrintQueue and PrintSystemJob??

  1. #1
    Hyperactive Member
    Join Date
    Apr 11
    Posts
    268

    A3 XPS files do not print properly with PrintQueue and PrintSystemJob??

    Hey all, im almost sure this is easier than most of my questions so here it goes hopefully someone will care and reply:

    I have an A3 xps document, its opening fine, reading fine, it looks to be a fine working file.

    Now i want to print it, to do this i use for example:
    Code:
    string nextFile =  directoryPath + "\\test.xps";
    PrintQueue defaultPrintQueue = LocalPrintServer.GetDefaultPrintQueue();
    defaultPrintQueue.UserPrintTicket.PageMediaSize = PageMediaSize(PageMediaSizeName.ISOA3);
    PrintSystemJobInfo xpsPrintJob = defaultPrintQueue.AddJob(f.Name, nextFile, false);
    So, what im trying to do is simple, im trying to tell the printer to print this file into an ISOA3 document, because its an A3 XPS file, but there is a slight problem:
    The printer outputs an A3 page with the content as if it was an A4 Size page but still with A3 content size, so its like you crop a full image and you only get whats in the middle, omitting things outside the a4 size, without changing zoom or anything, what gives? how can i fix this? ive been trying it all day long as usual and had no success in finding the problem or fixing it, please can someone help me with understanding whats wrong and possibly how to fix it? its really important even though it might be incredebly easy for an expert to figure it out :\

    Thanks in advance for all your replies.
    Last edited by Legendary_Agent; May 30th, 2012 at 01:11 PM.

  2. #2
    Hyperactive Member
    Join Date
    Apr 11
    Posts
    268

    Re: A3 XPS files do not print properly with PrintQueue and PrintSystemJob??

    Ok i think now i know what its called, i think it has something to do with the printable area or marginbounds of the printer current printqueue, how can i change anything similar to those properties? i can clearly see text missing from page without even beying close to page border.

    Alternatively is there a way to print a xps file with printdocument?
    i converted xps pages to png and printed with the png and that works just fine, however that doesnt use a printqueue at all and i would like to avoid such conversion as it has memory leaks and apparently cant find a way to regain it.

    Any suggestions at all?
    Thanls in advance!

  3. #3
    Hyperactive Member
    Join Date
    Apr 11
    Posts
    268

    Re: A3 XPS files do not print properly with PrintQueue and PrintSystemJob??

    Guys, ive compared more side by side, to see what exactly is missing and apparently there are different crops for different areas, for example:
    Line 1 and 2 are uncropped, line 3 to 6 are cropped for about 20% the next paragraph is uncropped and just below that the text is missing, its like a mix of crops and absolutely no problem at all is showing when viewing xps file with xpsviewer.

    Hope that gives you guys a bit of hint, i totally know nothing about printers and why this is happening :\

  4. #4
    Hyperactive Member
    Join Date
    Apr 11
    Posts
    268

    Re: A3 XPS files do not print properly with PrintQueue and PrintSystemJob??

    Well, im getting the feeling like no one cares but ill update this thread again with test results,

    I printed an a3 xps file to sendtoonenote 2007 & 2010, both display correctly, printing it to an image file format also displays correctly, printing the file to bullzipprinter as pdf converted correctly and printing that very same pdf file with pdf adobe reader also printer correctly to the same printer which did not print correctly programmatically within the c#, does this gives anyone any idea?

  5. #5
    Hyperactive Member
    Join Date
    Apr 11
    Posts
    268

    Re: A3 XPS files do not print properly with PrintQueue and PrintSystemJob??

    Hey guys, this problem is really reduced only to page margins, can this be a printer issue? i scaled it so much that it was only near the bottom right corner, and its still missing even like that, now im not sure if i can somehow find a way to fix this or if this is a printer problem?
    ITs a Xerox WorkCentre 7335

  6. #6
    Hyperactive Member
    Join Date
    Apr 11
    Posts
    268

    Re: A3 XPS files do not print properly with PrintQueue and PrintSystemJob??

    As my last resort, i am now converting the files to image when at A3, it works ok, although this is the most newb way to achieve something as simple as printing a xps a3 file, quite dissapointing...

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •