Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / General / October 2007

Tip: Looking for answers? Try searching our database.

Use ReportViewr To create Invoices

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Matt - 28 Oct 2007 23:49 GMT
I am trying to create an app that creates invoices from data in a database.  
Sales information is imported/entered throughout the day, then at EOD, all
the reports are generated and printed.

The data in the order information database might look something like:

OrderNumber / CustomerName / Item / Price
0001 / John / Ord1Itm1 / 1.00
0001 / John / Ord1Itm2 / 1.54
0002 / Sally / Ord2Itm1 / 2.00
0003 / Steve / Ord3Itm1 / 1.00
0003 / Steve / Ord3Itm2 / 4.30
0003 / Steve / Ord3Itm3 / 3.50

As you can see, a single order may have several records to reflect line item
information.

What I would like, is when the "report" is run, each page contains a single
invoice, so in this example, there would be 3 pages.  Page 1 would have John
and itemize his 2 items, page 2 would have Sally and her Item, etc...

I am able to get the report to come out correctly if i specify the order
number:
I.e., Use:  "Select * from Orders where OrderNumber = '0001'"

So this means the report would need to be run 3 times in this example.  I
would like to use instead:  "Select * from Orders", that way i only have to
run the process once.

Any suggestions or information is much appreciated.
Braulio Diez - 29 Oct 2007 14:39 GMT
Hard to find a sample that explains it all :-)

I think in this post you will find how to make it (master detail + page
break):

http://www.codeproject.com/sqlrs/1tomanyreports_vsnet2005.asp?df=100&forumid=226
607&exp=0&select=2224223


Good luck
  Braulio

/// ------------------------------
/// Braulio Diez
///
/// http://www.tipsdotnet.com
/// ------------------------------

> I am trying to create an app that creates invoices from data in a database.  
> Sales information is imported/entered throughout the day, then at EOD, all
[quoted text clipped - 26 lines]
>
> Any suggestions or information is much appreciated.

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.