For Programmers: Free Programming Magazines  


Home > Archive > Visual Basic > August 2005 > Printing data reports









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Printing data reports
Nandan

2005-08-29, 3:55 am

hi,


my problem is wen i give the command print for which i have written the
code datareport1.print report, it prints the whole data report. it
prints each and everything dat is saved, whereas i want to print a
specific set of info for a particular client. For ex.


client name : mr howard
address : 2234 down street
New york


telephone no :787899-9009-8798


but when i give the print report it prints from first client to the
last, plz help me with the code of this module so that i can print the
info which is needed to be printed.

UGH

2005-08-29, 6:55 pm

I am not sure what you need it to do but it sounds like you need to use sql
query to return only the results that you are looking for.

Grant


"Nandan" <nandan.warnekar@gmail.com> wrote in message
news:1125304060.783894.154160@g44g2000cwa.googlegroups.com...
> hi,
>
>
> my problem is wen i give the command print for which i have written the
> code datareport1.print report, it prints the whole data report. it
> prints each and everything dat is saved, whereas i want to print a
> specific set of info for a particular client. For ex.
>
>
> client name : mr howard
> address : 2234 down street
> New york
>
>
> telephone no :787899-9009-8798
>
>
> but when i give the print report it prints from first client to the
> last, plz help me with the code of this module so that i can print the
> info which is needed to be printed.
>



Hans

2005-08-29, 6:55 pm

Hello Nandan,

change (on run) the SQL string the report uses, so the report will only show
(and print) the data Youw want.

Yours friendly,

Hans Heezemans
www.iservi.com

----- Original Message -----
From: "Nandan" <nandan.warnekar@gmail.com>
Newsgroups: microsoft.public.vb.general.discussion
Sent: Monday, August 29, 2005 10:27 AM
Subject: Printing data reports


> hi,
>
>
> my problem is wen i give the command print for which i have written the
> code datareport1.print report, it prints the whole data report. it
> prints each and everything dat is saved, whereas i want to print a
> specific set of info for a particular client. For ex.
>
>
> client name : mr howard
> address : 2234 down street
> New york
>
>
> telephone no :787899-9009-8798
>
>
> but when i give the print report it prints from first client to the
> last, plz help me with the code of this module so that i can print the
> info which is needed to be printed.
>



Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com