473,402 Members | 2,046 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,402 software developers and data experts.

Visual Basic 6 Data Report Question

Me
Hi all,

I have an app in which I need to create a packing slip. I have designed in
report designer. The data is pulled from a SQL database. My question is
how can I put information from the data base into the Page Header?
The way I have it setup right now the PageHeader contains the logo, title,
address. All of which are fine. Then under that I need to put the ship to
and bill to addresses, which are pulled from the data base. Then under that
I need to have the column headings for item number, qty ordered, etc...
These column headings are just labels. The packing slips are usually more
than one page. Because I had to put data from the database above the
headings I have had to put the headings into the detail section. That means
they only print on page 1. I would like them to print on subsequent pages.
The way I see this working I would need to have the page header somehow
include the ship to and bill to information. Any idea's? Am I making
sense?

Thanks for any help you can provide.

Jul 17 '05 #1
4 7237
You have to use the Sections collection to get the header section and then
the Controls collection to change the controls caption or text.

like:
drMyReport.Sections("Section4").Controls("lblMyLab el").Caption = "Hello
World"

Where:
drMyReport is your Data Report
Section4 is the section where the controls you want to change reside
lblMyCaption is the name of the control you want to alter

--
Chris Hanscom - Microsoft MVP (VB)
http://www.veign.com
--

"Me" <yo*@me.com> wrote in message news:QK********************@rogers.com...
Hi all,

I have an app in which I need to create a packing slip. I have designed in report designer. The data is pulled from a SQL database. My question is
how can I put information from the data base into the Page Header?
The way I have it setup right now the PageHeader contains the logo, title,
address. All of which are fine. Then under that I need to put the ship to and bill to addresses, which are pulled from the data base. Then under that I need to have the column headings for item number, qty ordered, etc...
These column headings are just labels. The packing slips are usually more
than one page. Because I had to put data from the database above the
headings I have had to put the headings into the detail section. That means they only print on page 1. I would like them to print on subsequent pages. The way I see this working I would need to have the page header somehow
include the ship to and bill to information. Any idea's? Am I making
sense?

Thanks for any help you can provide.

Jul 17 '05 #2
Me
Thank you very much! I haven't done it yet but I am very appreciative of
your quick response. I have searched google for weeks looking for this.
"Veign" <me@home.com> wrote in message
news:BA*****************@newsread3.news.atl.earthl ink.net...
You have to use the Sections collection to get the header section and then
the Controls collection to change the controls caption or text.

like:
drMyReport.Sections("Section4").Controls("lblMyLab el").Caption = "Hello
World"

Where:
drMyReport is your Data Report
Section4 is the section where the controls you want to change reside
lblMyCaption is the name of the control you want to alter

--
Chris Hanscom - Microsoft MVP (VB)
http://www.veign.com
--

"Me" <yo*@me.com> wrote in message
news:QK********************@rogers.com...
Hi all,

I have an app in which I need to create a packing slip. I have designed

in
report designer. The data is pulled from a SQL database. My question is
how can I put information from the data base into the Page Header?
The way I have it setup right now the PageHeader contains the logo,
title,
address. All of which are fine. Then under that I need to put the ship

to
and bill to addresses, which are pulled from the data base. Then under

that
I need to have the column headings for item number, qty ordered, etc...
These column headings are just labels. The packing slips are usually
more
than one page. Because I had to put data from the database above the
headings I have had to put the headings into the detail section. That

means
they only print on page 1. I would like them to print on subsequent

pages.
The way I see this working I would need to have the page header somehow
include the ship to and bill to information. Any idea's? Am I making
sense?

Thanks for any help you can provide.


Jul 17 '05 #3
Me
I tried it and it works great!! Move over Spiderman you are my new
superhero. Why is this information so hard to find?

"Veign" <me@home.com> wrote in message
news:BA*****************@newsread3.news.atl.earthl ink.net...
You have to use the Sections collection to get the header section and then
the Controls collection to change the controls caption or text.

like:
drMyReport.Sections("Section4").Controls("lblMyLab el").Caption = "Hello
World"

Where:
drMyReport is your Data Report
Section4 is the section where the controls you want to change reside
lblMyCaption is the name of the control you want to alter

--
Chris Hanscom - Microsoft MVP (VB)
http://www.veign.com
--

"Me" <yo*@me.com> wrote in message
news:QK********************@rogers.com...
Hi all,

I have an app in which I need to create a packing slip. I have designed

in
report designer. The data is pulled from a SQL database. My question is
how can I put information from the data base into the Page Header?
The way I have it setup right now the PageHeader contains the logo,
title,
address. All of which are fine. Then under that I need to put the ship

to
and bill to addresses, which are pulled from the data base. Then under

that
I need to have the column headings for item number, qty ordered, etc...
These column headings are just labels. The packing slips are usually
more
than one page. Because I had to put data from the database above the
headings I have had to put the headings into the detail section. That

means
they only print on page 1. I would like them to print on subsequent

pages.
The way I see this working I would need to have the page header somehow
include the ship to and bill to information. Any idea's? Am I making
sense?

Thanks for any help you can provide.



Jul 17 '05 #4
Not common enough. The least a question is asked the harder it is to find
an answer...

Glad it worked for you..

--
Chris Hanscom - Microsoft MVP (VB)
Veign's Resource Center
http://www.veign.com/vrc_main.asp
--

"Me" <yo*@me.com> wrote in message news:VM********************@rogers.com...
I tried it and it works great!! Move over Spiderman you are my new
superhero. Why is this information so hard to find?

"Veign" <me@home.com> wrote in message
news:BA*****************@newsread3.news.atl.earthl ink.net...
You have to use the Sections collection to get the header section and then the Controls collection to change the controls caption or text.

like:
drMyReport.Sections("Section4").Controls("lblMyLab el").Caption = "Hello
World"

Where:
drMyReport is your Data Report
Section4 is the section where the controls you want to change reside
lblMyCaption is the name of the control you want to alter

--
Chris Hanscom - Microsoft MVP (VB)
http://www.veign.com
--

"Me" <yo*@me.com> wrote in message
news:QK********************@rogers.com...
Hi all,

I have an app in which I need to create a packing slip. I have designed
in
report designer. The data is pulled from a SQL database. My question
is how can I put information from the data base into the Page Header?
The way I have it setup right now the PageHeader contains the logo,
title,
address. All of which are fine. Then under that I need to put the

ship to
and bill to addresses, which are pulled from the data base. Then under

that
I need to have the column headings for item number, qty ordered, etc...
These column headings are just labels. The packing slips are usually
more
than one page. Because I had to put data from the database above the
headings I have had to put the headings into the detail section. That

means
they only print on page 1. I would like them to print on subsequent

pages.
The way I see this working I would need to have the page header somehow
include the ship to and bill to information. Any idea's? Am I making
sense?

Thanks for any help you can provide.



Jul 17 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

10
by: John | last post by:
I have a problem, it's not with any code I have because... there is no code. When I run a blank visual basic 6 form, it opens up just fine. When I add a text box, a caption, and a button... it...
1
by: Corrie Meyer | last post by:
Announcement: SwiftReports standard edition 1.0 for Visual Studio ..NET 2003 released by UniSwift. We are pleased to announce the first release of a fully-managed reporting tool for the...
6
by: harish | last post by:
I want to give a page break when my one of the field change to some different value. I want separte page for different value at run time.
1
by: praful pathak | last post by:
i i am praful pathak,porbandar i want to develop my own cross tab report in visual basic 6 i know what developed query from ms access but how to coded in visual basic in designing time and how to...
2
by: CAM | last post by:
Hello, I am wondering if someone can give me some pointers. Currently I am using Access 2002 I developed an inventory tracking database, which this database is used in California and in...
11
DUNXALEARE
by: DUNXALEARE | last post by:
Hello everyone! I have a new assignment. I just dont know how to create a data report using ms excell. I need to search particular group of data/records using Visual basic 6. in MS Access and...
0
by: ranesmitas | last post by:
i want to use crystal report in visual basic as i am new , i want to know i create crytal report in visual basic . we want to create designer (crystal report) in visual basic or in seagate crystal...
1
by: subratamaji | last post by:
Hi, I am new to crystal report. Can any one plz guide how to use crystal report 11.5 with visual basic 6.0. Is it already included in visual basic 6.0 or will have to include it from...
3
by: firozfasilan | last post by:
I am new to visual basic 2008. In the past I have used vb6 to display an existing crystal report. I would like to accomplish the same with vb.net. However I am not clear on the syntax to display a...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.