Financial Calculations on ASP.NET forms

  • Thread starter Thread starter Leszek
  • Start date Start date
L

Leszek

Hello,

I need to do some financial calculations on my ASP.NET forms. Under Visual
Basic it was pretty straightforward - I just used built-in functions such as
PV() (principal value) or PMT().
How can I access those functions under .NET and display them on ASP.NET
forms?

Any ideas?
Thanks,
Leszek Taratuta
 
Hi Leszek,

Based on my research and experience, the following URLs are useful to you.
Please check them carefully.

PV Function
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vblr7/html/
vafctpv.asp
"...
Requirements
Namespace: Microsoft.VisualBasic

Module: Financial

Assembly: Microsoft Visual Basic .NET Runtime (in Microsoft.VisualBasic.dll)
..."

Pmt Function
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vblr7/html/
vafctpmt.asp
"...
Requirements
Namespace: Microsoft.VisualBasic

Module: Financial

Assembly: Microsoft Visual Basic .NET Runtime (in Microsoft.VisualBasic.dll)
..."

Does it answer your question? If I have misunderstood your concern, please
feel free to let me know.

Best regards,

Jacob Yang
Microsoft Online Partner Support
Get Secure! ¨C www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.
 
Great!
I am just creating a small application using these functions.
By the way,
Is there any possibility to use them with C#? It is my language of choice
and now I would be forced to create a VB.NET assembly to use in C# projects.
It this a right way to do this?

Thanks,
Leszek Taratuta
 
Hi Leszek,

Thank you for your update.

In a C# project, please do the following steps.

1. Select Project->"Add Reference...".

2. In the .NET tab, add the reference of "Microsoft Visual Basic .NET
Runtime".

Then we can use the Pmt function like the following in this C# project.

Microsoft.VisualBasic.Financial.Pmt

Does it answer your question? If I have misunderstood your concern, please
feel free to let me know.

Best regards,

Jacob Yang
Microsoft Online Partner Support
Get Secure! ¨C www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.
 
Back
Top