English 中文(简体)
如何在RDLC中使用变量
原标题:How to use variable in RDLC

I m new in C# and Irch? 如果我能够使用的话,插手告诉我如何使用。 我指的是将价值观划分为变量,或像这种变量。

我有购买和付款表。 在我的报告中,我需要从这两个表格中提取具体栏目,例如,

  [PurchaseNo]  [PaymentDate]  [PurchaseAmount]   [PaymentAmount]

     c1          12/3/2012       1000               200
                 12/4/2012       1000               500
   -------------------------------------------------------------------
     SubTotal                    1000               700
   --------------------------------------------------------------------

     c2          12/3/2012       900               300
                 12/4/2012       900               500
   -------------------------------------------------------------------
     SubTotal                    900               800
   --------------------------------------------------------------------

     Total                       1900              1500 

律师联盟就是这样,但当它创立了RDLC并管理它的时候。

  [PurchaseNo]  [PaymentDate]  [PurchaseAmount]   [PaymentAmount]

     c1          12/3/2012       1000               200
                 12/4/2012       1000               500
   -------------------------------------------------------------------
     SubTotal                    2000               700
   --------------------------------------------------------------------

     c2          12/3/2012       900                300
                 12/4/2012       900                500
   -------------------------------------------------------------------
     SubTotal                    1800               800
   --------------------------------------------------------------------

     Total                       3800               1500 

that s the problem i m currently having now.. I don t know to add the PurchaseAmount and Payment can t be paid in one day.. so what I think is I ll create a variable in RDLC and in RDLC, I ll use IIf function to check if the PurchaseNo is equal or not. If it s equal, I ll avoid adding PurchaseAmount.. and store in the variable. Or is there any ways pls tell me!

任何人都知道,他们帮助我!

问题回答

我相信,如果你与“火焰”一道把“火焰”同起来,那么你就会被归类为<条码>。 您不能取得这样的成就:

[PurchaseNo]  [PurchaseAmount] [PaymentDate]   [PaymentAmount]

   c1              $1,000.00     12/3/2012           $200.00
                                 12/4/2012           $500.00
 -------------------------------------------------------------------
   SubTotal        $1,000.00             2           $700.00
 --------------------------------------------------------------------

   c2                $900.00     12/3/2012           $300.00
                                 12/4/2012           $500.00
 -------------------------------------------------------------------
   SubTotal          $900.00             2           $800.00
 --------------------------------------------------------------------

   Total           $1,900.00             4         $1,500.00 




相关问题
An error has Occurred During Report proccesing

When I m running the report I m getting that message above. The Report Works fine when I press the "Run Report" Button but I want also to avoid that annoying message that appears when the page loads. ...

Reporting services only displaying the last row

I have built a report pretty basic just a table wiht 45 rows of data. Problem is its only showing one row of data and its the last row. It displays just fine in the dataset and proc. any ...

Show Parameters for Reports In SSRS

I m developing an SSRS in Visual Studio BIDS. In it, I have a link that links to another report (report A). Report A has 4 parameters (dates). When I click on that link, it goes to report A fine, but ...

How to add group, or page field in an existing .rdl report

I have several .rdl reports designed for our client. However, they need new ones, that are relatively similar to the old ones. Differences are in the "group" and "page fields" (these can be changed ...

Report rendering using SSRS in Google Chrome

Hey, In our project, we use SSRS integrated with asp.net forms to render reports. The report looks good in IE. when it comes to google chrome, there re some issues we face such as date picker not ...

热门标签