Ecrion Software Inc. Homepage
Forum Home Forum Home > XF Rendering Server > Generic Support
  New Posts New Posts RSS Feed: Document Merge
  FAQ FAQ  Forum Search   Register Register  Login Login

Document Merge

 Post Reply Post Reply
Author
Message / View First Unread Post
webDev View Drop Down
Newbie
Newbie
Avatar

Joined: 23 Mar 2009
Location: NJ
Posts: 1
Post Options Post Options   Quote webDev Quote  Post ReplyReply Direct Link To This Post Topic: Document Merge
    Posted: 23 Mar 2009 at 9:53am
Hi All,
 

I want to Merge 2 PDF files into one pdf file, using Ecrion Engine.

I got same code from the help, how to merge the documents.

I am getting error "An unreacheable code exception has occured."

 

Can anyone please let me know, what I am missing. Is I am missing any dll reference which, I have to provide to my project or any other changes need to do.

 

Thanks,

GS.

 

Sample code:

string[] inputFiles = new string[2];

inputFiles[0] = @"C:\zdev\temp\downloadPODataWithEcrion\downloadPODataWithEcrion\POData\POData\bin\Debug\DWRR_PO.PDF";

inputFiles[1] = @"C:\zdev\temp\downloadPODataWithEcrion\downloadPODataWithEcrion\POData\POData\bin\Debug\PO.PDF";

string outputFile = @"C:\zdev\temp\downloadPODataWithEcrion\downloadPODataWithEcrion\POData\POData\output\xyz.PDF";

using (XFMergeContext ctx = new XFMergeContext())

{

//ctx.outputFormat = Ecrion.XF.OutputFormat.TEXT;

ctx.outputFormat = OutputFormat.PDF;

ctx.SetOutput(outputFile);

using (XFDocument doc = new XFDocument())

{

foreach (string inFile in inputFiles)

{

doc.LoadUrl(inFile);

doc.ExportTo(ctx);<- Getting error at this location. {"An unreacheable code exception has occured."}

}

}

}

GS
Back to Top
florinv View Drop Down
Admin Group
Admin Group


Joined: 19 May 2008
Posts: 82
Post Options Post Options   Quote florinv Quote  Post ReplyReply Direct Link To This Post Posted: 25 Mar 2009 at 4:11pm
Please make sure that you have a permanent license installed.
Back to Top
webDev View Drop Down
Guest Group
Guest Group
Post Options Post Options   Quote webDev Quote  Post ReplyReply Direct Link To This Post Posted: 27 Mar 2009 at 9:27am

I have installed the license on my pc. Where can I verify license has installed properly. Please let me know.

Thanks,

GS

Back to Top
webDev View Drop Down
Guest Group
Guest Group
Post Options Post Options   Quote webDev Quote  Post ReplyReply Direct Link To This Post Posted: 27 Mar 2009 at 9:28am

I am getting same error on other pc also.

GS
Back to Top
florinv View Drop Down
Admin Group
Admin Group


Joined: 19 May 2008
Posts: 82
Post Options Post Options   Quote florinv Quote  Post ReplyReply Direct Link To This Post Posted: 23 May 2009 at 11:57am
1) Please uninstall your current version, then download and install the latest
2)You may need to uninstall any temporary licenses that were previously sent by support. Merge should work now without having a permanent license installed. After installing/uninstalling a license, always remember to restart the XF Ultrascale Windows service.
3) If you are still getting an error, please send your PDF files to Technical Support and we'll troubleshoot.



Edited by florinv - 23 May 2009 at 12:01pm
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down

Bulletin Board Software by Web Wiz Forums® version 9.69
Copyright ©2001-2010 Web Wiz

This page was generated in 0.094 seconds.