You are accessing the Members Only area for DynDeveloper.com using guest access. The member experience is slightly different
Malachi
4Penny.net
Points: 7700

4/12/2021 8:15:10 AM

Writing a multi-page SSRS report

* This article, and all our great .NET Development documentation, Is available on the .NET Development menu

The task is to craft an SSRS report for (for example) and invoice and you want to print a batch of them. 

We need an SSRS report that is multi-page. This video tutorial will walk you through that effort.

4Penny.net
Version: Unknown or N/A
Section: SSRS

(259) Multi Page Invoice Tutorial - YouTube

 

IF exists (select * from INFORMATION_SCHEMA.ROUTINES where ROUTINE_NAME = 'dd_Invoice') begin
    DROP proc dd_Invoice
end
GO
 
CREATE proc dd_Invoice
--  dd_Invoice 'SOP INVOICES'
                                    
@bachnumb varchar(15)
AS
set transaction isolation level read uncommitted
select
        h.sopnumbe,
        h.soptype,
        h.BACHNUMB,
        h.docid,
        h.CUSTNMBR,
        h.CUSTNAME,
        h.CSTPONBR,
        rtrim(h.CUSTNAME) + char(13) + char(10) + rtrim(shipto.ADDRESS1) + char(13) + char(10) + rtrim(shipto.ADDRESS2) + char(13) + char(10) + rtrim(shipto.CITY) + ' ' + rtrim(shipto.state) + ', ' + rtrim(shipto.ZIP) as ShipTo,
        rtrim(h.CUSTNAME) + char(13) + char(10) + rtrim(billto.ADDRESS1) + char(13) + char(10) + rtrim(billto.ADDRESS2) + char(13) + char(10) + rtrim(billto.CITY) + ' ' + rtrim(billto.state) + ', ' + rtrim(billto.ZIP) as BillTo,
        l.itemnmbr,
        l.CMPNTSEQ,
        l.quantity,
        l.uofm,
        l.UNITPRCE,
        l.XTNDPRCE,
        h.SUBTOTAL,
        h.FRTAMNT,
        h.MISCAMNT,
        h.DOCAMNT
    from sop10100 h
        join sop10200 l on l.sopnumbe = h.sopnumbe and l.soptype = h.soptype
        join rm00102 billto on billto.CUSTNMBR = h.CUSTNMBR and billto.ADRSCODE = h.PRBTADCD
        join rm00102 shipto on shipto.CUSTNMBR = h.CUSTNMBR and shipto.ADRSCODE = h.PRSTADCD
    where
        h.BACHNUMB = @bachnumb
        and h.soptype = 3
    order by h.SOPNUMBE
 
GO
 
GRANT EXEC ON dd_Invoice TO PUBLIC

 

 

 

 

 

Please leave a comment

Add a Comment



Not Subscribed. You will not receive emails on article changes or comment additions

Comments

body header
No records to display.
Table Definition Quick Links
All Tables
SOP Tables
RM Tables
GL Tables
POP Tables
HR Tables
PM Tables
UPR Tables
IV Tables
Olympic Tables
3