Click to See Complete Forum and Search --> : Please Help


Shiv Kumar G.M.
August 26th, 2001, 03:04 AM
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.

cksiow
August 26th, 2001, 10:03 PM
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

Shiv Kumar G.M.
August 27th, 2001, 12:23 AM
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.