in
Forums
Blogs
Files
Devexpress.Com
Client Center
Support Center
DevExpress Channel

[QES] Multi paper size in a document + Change paper size of printer

Last post 11/2/2007 5:24 AM by Alan (Developer Express). 3 replies.
Page 1 of 1 (4 items)
Sort Posts:
Previous Next
  • 10/25/2007 6:51 AM

    [QES] Multi paper size in a document + Change paper size of printer

    Dear all,

     I am develop a printing software with controls of Devexpress. I have some problems. Please help me to solve these problems

     [+] Multi paper size:

    My document has many pages. Each page has difference paper size. For ex: the document has 4 pages. Two first papes are A3 paper and other papers are A4 paper.

    I can not display it on PrintControl with different paper size.

     [+] Paper size of printed job:

    Relate above problem, if my page is A3 and default paper size on printer driver is A4. I can not print out my page with A3 paper size. It always is A4 even I changed default paper size of selected printer driver is A3.

    [+] Copies pages:

    Anybody can help me to set copies pages for printing job?

    [+] Show selected "sub page"

    I am developing NUP function and I want to select "sub page" on Print Control. Please see below example:

    NUP = 2. Before select page

    When user click on the second page a hight light box will be shown.

    My problem is I don't know position of second page on this control and how to draw a virtual rectange (hight light box) in this control.

     

    Please help me.

    Thank you very much

     

  • 10/30/2007 4:11 AM In reply to

    Re: [QES] Multi paper size in a document + Change paper size of printer

    Hello Nguyen,

    The only way to show pages of different orientation within a single PrintControl is the following:
    1. Create several PrintingSystem instances with different page settings.
    2. Create Documents of every printing system. After a document is created, all its pages can be accessed via the  PrintingSystem.Pages or Document.Pages property. (see http://devexpress.com/Help/?document=xtraprinting/devexpressxtraprintingprintingsystempagestopic.htm)
    3. Now you're able to programmatically combine pages from different printing systems into a single Pages collection. For  example, see how different pages can be combined into a single document for several XtraReports:  http://devexpress.com/Help/Content.aspx?help=XtraReports&document=CustomDocument3321.htm

    @.
    R&D, .NET Team.

    PS. If you wish to receive direct assistance from our Support Team, use Support Center at http://www.devexpress.com/sc.
  • 11/2/2007 12:30 AM In reply to

    Re: [QES] Multi paper size in a document + Change paper size of printer

    Hello Alan,

    Thank you for your answer. I will try this method to make multi paper size in signle PrintControl.

    How about physical size of printer? My problem is I set paper size of print control is A3 and I tried to print it to a printer that print also support A3 but default paper size if A4. When I printed it to the printer the result is A4. How can I print job with A3?

     I also meet a problem with printingcontrol, when I set paper size of print control

    here is my code:

    objPrtSys.PageSettings.PaperKind = PaperKind.A4; // objPrtSys is printingsystem of printControl

    objCurrPage = objPrtSys.CreatePage();

    objPrtSys.Pages.Add(objCurrPage);

     

    nPhysicalWidth = (
    int)objCurrPage.PageSize.Width * 100 / nPrinterDPI; //nPrinterDPI = 300

    nPhysicalHeight = (

    int)objCurrPage.PageSize.Height * 100 / nPrinterDPI;

    gr = objPrtSys.Graph;

    gr.DrawRect(new RectangleF(0, 0, nPhysicalWidth ,nPhysicalHeight ) , BorderSide.All, Color.Black, Color.Blue);

    I expected that the page must filled by black color and it only has a page.

    But actually, some small part of page (at right and bottom) are not filled with black color and it has 4 pages instead 1 page.

    NOTE: I already set margin of paper is 0

    objCurrPage.MarginsF.Margins.Bottom = 0;

    objCurrPage.MarginsF.Margins.Top = 0;

    objCurrPage.MarginsF.Margins.Right = 0;

    objCurrPage.MarginsF.Margins.Left = 0;

  • 11/2/2007 5:24 AM In reply to

    Re: [QES] Multi paper size in a document + Change paper size of printer

    Hello Nguyen,

    Your scenario is interesting, but it's too difficult to diagnose why it behaves in this way without seeing your project. Could you please create a Question in our Support Center at http://www.devexpress.com/sc, and attach your project to it, so that we can investigate it? This would be greatly appreciated!

    @.
    R&D, .NET Team.

    PS. If you wish to receive direct assistance from our Support Team, use Support Center at http://www.devexpress.com/sc.
Page 1 of 1 (4 items)
Copyright © 1998-2008 Developer Express Inc.
ALL RIGHTS RESERVED