Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

Professional Opinions
Ask a Question
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE

troubleshooting Question

combine 2 pdf files to 1 file to print in duplex

Avatar of Tech_Men
Tech_MenFlag for Israel asked on
2 Comments1 Solution662 ViewsLast Modified:
hi there i have this code  that create the pdf file :

then i have the second pdf that need to append to the first pdf by this code :

when i open the pdf file i can only 1 page the combine not working


                report.SetParameterValue("@CustName", CustName);
                report.SetParameterValue("@CustOrderNum", CustOrderNum);
                report.SetParameterValue("@Quant", Quant);
                report.SetParameterValue("@OrderNum", OrderNum);

                //report.PrintOptions.PrinterDuplex = CrystalDecisions.Shared.PrinterDuplex.Vertical;
                //report.PrintToPrinter(0, false, 0, 0);
                report.ExportToDisk(CrystalDecisions.Shared.ExportFormatType.PortableDocFormat, "c:\\temp.pdf");

//The Second Pdf That need to Append to the first file

  DataSet ds1 = new DataSet();
                        ds1 = AgaTekensClass.AgaTekensMange.GetSketshDs(MktId);

                        Byte[] byteBLOBData;
                        byteBLOBData = null;

                        byteBLOBData = (Byte[])(ds1.Tables[0].Rows[0]["ProSketch"]);

                        FileStream fs = new FileStream("c:\\temp.pdf", FileMode.Append);
                        fs.Write(byteBLOBData, 0, byteBLOBData.Length);
Avatar of Shahan Ayyub
Shahan AyyubFlag of Pakistan imageStaff Software Engineer

Our community of experts have been thoroughly vetted for their expertise and industry experience.

This problem has been solved!
Unlock 1 Answer and 2 Comments.
See Answers