我需要将ILIST中的数据转换为PDF [英] I need to convert the data which in ILIST to PDF

查看:77
本文介绍了我需要将ILIST中的数据转换为PDF的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我从IList获取数据作为计数(132),现在我想转换成PDF。有没有办法转换或建议我任何其他方法或方法这样做。



申请:窗口申请

框架:4.5

后端代码:C#

数据库连接:EntityFramework



我尝试过:



i am getting the data from IList as count(132) and now i want convert into PDF. is there any way to convert or suggest me any other method or way to do so.

Application: windows Application
Framework: 4.5
Backend Code: C#
database connectivity: EntityFramework

What I have tried:

            CurrentDateTime = RoundToNearestHour(DateTime.Now);
            string currenthour = CurrentDateTime.ToString("hh:mm");
            List<FMUserReportInfo> data = balGenerateFMVoteReportBAL.GetFMUserReportInfo(currenthour);
            if(data !=null)
            {
                foreach (var userdetails in data)
                {
                    User userdata = balGenerateFMVoteReportBAL.GetFMUserDetails(userdetails.UserId);
                    int pxpmid = balGenerateFMVoteReportBAL.GetPxPmDetails(userdata.CorpId);
                    PortfolioManager pmdetails = balGenerateFMVoteReportBAL.GetPortfolioManagerDetails(pxpmid);
                    if(pmdetails !=null)
                    {
                        var voteduereportdata = GetVoteDueReportDetails(pmdetails.Id, userdetails.ReportDueDate);
                    }
                    else
                    {
                        var voteduereportdata = GetVoteDueReportDetails(0, userdetails.ReportDueDate);

***want to convert the var data into PDF*********************
                    }                                          

                }
            }

        }

推荐答案

iTextSharp,一个.NET PDF库SourceForge.net [ ^ ]。


这篇关于我需要将ILIST中的数据转换为PDF的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆