Can not find the directory

Using OLE Automation API
Post Reply
townsend
Posts:1
Joined:Wed Nov 27, 2013 1:01 am
Can not find the directory

Post by townsend » Wed Nov 27, 2013 1:39 am

Hi, I tested the p2f Automation API on my PC, it runs perfectly, the code as below:

Code: Select all

            Print2Flash3.Server2 p2f = new Print2Flash3.Server2();
            Print2Flash3.Profile2 myprof = new Print2Flash3.Profile2();
            myprof.InterfaceOptions = 0;
            myprof.Language = "zh-CN";
            myprof.Skin = null;
            Directory.SetCurrentDirectory(@"E:\temp");
            Directory.CreateDirectory("flash");
            string sourceFile = "WHO守则合.规需求报告.docx";
            string targetFile = sourceFile.Remove(sourceFile.LastIndexOf(".")) + ".swf";
            //p2f.ConvertFile("E:\\temp\\" + sourceFile,"E:\\temp\\flash\\" + targetFile,myprof,null,null);
but, when I try to convert a document on my NAS server, it threw exception

Code: Select all

            string str_path = @"\\192.168.0.230\WPMDocs\2013\11\25\";
            p2f.ConvertFile(@"\\192.168.0.230\WPMDocs\2013\11\25\CMSWebService.docx", @"\\192.168.0.230\WPMDocs\2013\11\25\CMSWebService.swf", myprof, null, null);
Does it support "network path"? What should I do?

thanks!

Townsend

staff
Posts:267
Joined:Sat Dec 15, 2007 4:48 pm

Re: Can not find the directory

Post by staff » Wed Nov 27, 2013 2:46 am

Yes, network paths are supported. Which exception did it throw?

Post Reply