Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

CODE TO PRINT REPORT HEADING ON EVERY PAGE

Status
Not open for further replies.

Brianus

Programmer
Jul 5, 2006
11
US
Hello intellects,
Please, what's the appropriate VB code to print my report heading on every papge when printing?
Thanks all for your anticipated help.
BM.
 

And you are using Crystal Reports, Word, Excel, ... ?


Have fun.

---- Andy
 
some of the reports will be coming from MS Access tables and some from excel.
Thanks.
BM.
 



.... and the Report itself will be displayed in ..... what?

Have fun.

---- Andy
 
The report will be generated thru VB (By clicking on a command button on a VB form)
Thanks.
 
:)

OK, you are in VB, you click on a command button, data is comming from Access and/or from Excel, and the report is going to a XXX document.

Fill XXX:
a. MS Word.
b. Crystal Report
c. MS Excel
d. Data Report (part of VB)
e. Notepad - text info
f. Other

Have fun.

---- Andy
 
Are you using the Printer object direct from VB? If so you get a new page with
Code:
Printer.Newpage

___________________________________________________________
If you want the best response to a question, please check out FAQ222-2244 first.
'If we're supposed to work in Hex, why have we only got A fingers?'
Drive a Steam Roller
Steam Engine Prints
 
if useing the Datareport in vb ....
fill out Page Heading


Printer object

use a Linecounter when you print a line

If Linecounter => No Of Lines Per Page
Printer.newpage
call subroutine to print Standard Heading
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top