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 bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Stupid? Report in VB6 showing variables

Status
Not open for further replies.

kermit01de

Technical User
Jan 20, 2002
256
DE
Maybe this is a real stupid thing for the profs ...

I have a bunch of data stored in variables & arrays I just want to print out in a simple formatted page

eg.
----------------------------
MyHotel
Report # 12345
Created: 01.01.2010 12:34

Terminals:
1 - Restaurant
2 - Bar
3 - Poolbar

SALES: 1234,56

-------------------------------

MyHotel is in variable Hotel
Report# is in ReportID
Created is Now()
Terminals are T(1,x)
SALES is in TOTALSALES

Any hint available? Thanks

--------------------------------------
>>>>>> Bugs will appear in one part of a working program when another 'unrelated' part is modified <<<<<
 
Dunno.
Can haz code?
:p

[navy]"We had to turn off that service to comply with the CDA Bill."[/navy]
- The Bastard Operator From Hell
 
Printer.CurrentX = 500
Printer.CurrentY = 1500
Printer.Print strHotel
..
..
..
..
Printer.EndDoc

David Paulson

 
Thanks - not so simple, but got it in the meantime with eg.

ZReport.Sections("Section2").Controls("Hotel").Caption = Hotel(0, 0)
ZReport.Sections("Section2").Controls("ReportID").Caption = ReportID
ZReport.Sections("Section2").Controls("Created").Caption = Now()
ZReport.Show

Ok, I know --- too stupid. But sometimes I am not able to see the forest behind all the trees ...

Have a nice weekend. Maybe I will come back with the next stupid request.

--------------------------------------
>>>>>> Bugs will appear in one part of a working program when another 'unrelated' part is modified <<<<<
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top