CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Aug 2001
    Location
    India
    Posts
    173

    Any Gurus on Net For Printer Problems

    Sir,
    Sir, I am getting data from table(s), that data is given to Crystal Reports 7.0, where it does

    Grouping, sorting and others.

    We have a button on the Form. Clicking on button will open the Crystal Report, which has a

    toolbar which contains a button for printing.

    when I click on that the report will go for printing. I have not written any code to control/do

    the printing.

    Sir, the printing is done by the Crystal Reports when I click on the print button.

    During this, the data gets splitted like this.

    Customer No : A001

    Date : 1-1-2001
    Item Code Item Name
    P001 Abc
    P002 Xyz

    Date : 1-2-2001
    Item Code Item Name
    P100 ABc1
    P110 ABc2
    P122 ABc3
    P133 ABc4
    P130 ABc1
    P140 ABc2
    P172 ABc3
    P183 ABc4

    printing will be something like this.
    If my page size is say 2" by 2" then the 1-1-2001 will come properly.
    1-2-2001 will be splitted over two or three pages, where between each page, it leaves a single

    line space which looks
    this way.

    Date : 1-2-2001
    Item Code Item Name
    P100 ABc1
    P110 ABc2

    P122 ABc3
    P133 ABc4
    P130 ABc1
    P140 ABc2

    P172 ABc3
    P183 ABc4

    Please Help me sir,
    Thank You,
    Shivakumar G.M.


  2. #2
    Join Date
    Jul 2000
    Location
    Milano, Italy
    Posts
    7,726

    Re: Any Gurus on Net For Printer Problems

    If matter is about splitted records on pages, you may have to redraw your report. Using detail section to show a record will tile together informations about single records. You may repeat intestations (headers) using appropriate sections of Crystal Report. However, the width of the page should be fixed (you should not change it) after you draw your report. If customer printer has different size paper, you may add a printer in control panel which can point to the customer printer with the correct size of paper for your report, and make the report print with that printer.
    Hope this may help.

    Cesare

    Special thanks to Lothar "the Great" Haensler, Tom Archer, Chris Eastwood, TCartwright, Bruno Paris, Dr_Micahel
    and all the other wonderful people who made and make Codeguru a great place.
    Come back soon, you Gurus.

    The Rater
    ...at present time, using mainly Net 4.0, Vs 2010



    Special thanks to Lothar "the Great" Haensler, Chris Eastwood , dr_Michael, ClearCode, Iouri and
    all the other wonderful people who made and make Codeguru a great place.
    Come back soon, you Gurus.

Posting Permissions

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





Click Here to Expand Forum to Full Width

Featured