CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3

Thread: Please Help

  1. #1
    Join Date
    Aug 2001
    Location
    India
    Posts
    173

    Please Help

    Please help Me.

    I have a report to be printed on DOT Matrix printer.

    Is it possible to print to a DOT Marix printer without giving the Page Size?

    I am using the page size of 4 inch by 6 inch.

    The problem is the report will get data from Table(s), which may be either 1 or 2 or 3 or many. So, when the printing goes on, (I'm using continuous stationary) The first page may contain only 2 records, the second page may contain 10 records and so. During this process, after printing the first page which is containing only 2 records, it will print blank lines and then goes to second page. During this, the output will be very odd.
    Even though I have set the Top and Bottom Margin to 0, "it prints 1 blank line space in between the pages".

    Can anybody help me to avoid printing of unnecessary blank lines between the different pages.

    That is, in the report, there should be no blank lines which is given by the printer on its own because, the gaps which are required are given by the report.

    It is very much required.

    Thank You.


  2. #2
    Join Date
    Apr 2000
    Posts
    737

    Re: Please Help

    You can bypass the printer spooler and print directly to the printer. you have the control of the whole process & you are on your own....

    check out the following API

    StartDocPrinter, WritePrinter, EndDocPrinter.


    HTH

    cksiow
    http://vblib.virtualave.net - share our codes

  3. #3
    Join Date
    Aug 2001
    Location
    India
    Posts
    173

    Re: Please Help

    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.

    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

    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.


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