troubleshooting Question

I need help converting a Stream into a PDF document, in my C#.Net Windows Service

Avatar of mainrotor
mainrotor asked on
C#.NET App Servers
2 Comments1 Solution301 ViewsLast Modified:
Hello Experts:

1. I need help converting a Stream into a PDF document, in my C#.Net Windows Service.
2. I need to save the newly created PDF document into the following location:  C:\MyClaims\

Here my current code.  I have a Stream variable named mergeClaims, which i need to create into a PDF doc.

                if (_rejectLetter.Count() > 0)
                {
                    foreach (var r in _rejectLetter)
                    {
                        int cdo =  r.CDO.Value;
                        long MisdirectedID = r.MisdirectedID;
                        string market = r.Market.ToString();
                        string healthplan = r.HealthPlan.ToString();
                        string GROUP_ID = r.GROUP_ID.ToString();
                        string runType = r.RunType.ToString();
                        string dcn = r.Intermediary_Claim_Number.ToString();
                        string ClaimType = r.ClaimType.ToString();

                        Utilities.GenerateMisdirectedLetter ltr = new GenerateMisdirectedLetter();
                        Stream coverLetter = ltr.CreateMisdirectedLetter(cdo, market, healthplan, runType);
                        new Utilities.DB(connRejLetter).insertMisdirectedPrintDate(MisdirectedID);

                        Utilities.getClaimForm claim = new Utilities.getClaimForm();
                        Stream Claim = new MemoryStream();
                        Claim = claim.ExportForm(dcn, ClaimType, true);

                        List<Stream> claims = new List<Stream>();
                        claims.Add(coverLetter);
                        claims.Add(Claim);
                        Stream mergeClaims = _pdf.mergePDFs(claims);  //NEED TO CONVERT THIS STREAM INTO A PDF
                    }
                }
ASKER CERTIFIED SOLUTION
Join our community to see this answer!
Unlock 1 Answer and 2 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 2 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros