ดู OFX ร้องขอไฟล์ผ่าน C#
การดูรายงานทางการเงินในรูปแบบคำขอ OFX โดยไม่ต้องติดตั้ง Microsoft Office หรือซอฟต์แวร์อื่นใด
วิธีดู OFX คำขอไฟล์
ทำตามขั้นตอนในข้อมูลโค้ดหรือปรับปรุงตามที่แอปพลิเคชันของคุณต้องการสำหรับการดูไฟล์คำขอภาษาการรายงานทางธุรกิจที่ขยายได้ OFX ไฟล์ ตรวจสอบให้แน่ใจว่ามีข้อกำหนดในการอ่านในใบสมัครของคุณ
- สร้าง OfxRequestDocument คลาส ตัวอย่าง.1. ส่งชื่อไฟล์คำขอ OFX ที่ถูกต้องเป็นพารามิเตอร์1. เพื่อให้ได้รายละเอียดภายในของไฟล์ ให้ใช้คลาสที่เกี่ยวข้องเช่น SignonRequest 1. แสดงข้อมูลเหล่านี้
ข้อกำหนดในการอ่าน
หากต้องการดำเนินการดู OFX เอกสารคำขอ .NET Finance API เป็นข้อกำหนดหลักที่จะรวมไว้ในใบสมัคร
- ติดตั้งผ่านบรรทัดคำสั่งเป็น
ติดตั้ง nuget Aspose.Finance
หรือผ่าน Package Manager Console ของ Visual Studio ด้วยInstall-Package Aspose.Finance
- หรือรับตัวติดตั้ง MSI แบบออฟไลน์หรือ DLL ในไฟล์ ZIP จาก ดาวน์โหลด .
C# รหัสเพื่อดู OFX ไฟล์คำขอ
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//open the ofx request document | |
OfxRequestDocument document = new OfxRequestDocument(@"ofx-request-file-name.sgml"); | |
//get the detail information | |
SignonRequest signonRequest = document.SignonRequestMessageSetV1.SignonRequest; | |
string userId = signonRequest.UserId; |
ตัวเลือกการดูอื่นๆ
iXBRL (Inline Extensible Business Reporting Language)