Hi Mirza,
I think the problem is due to the path not being well formatted.
Some of the valid paths that are acceptable are:
· "c:\\MyDir\\MyFile.txt" in C#, or "c:\MyDir\MyFile.txt" in Visual Basic.
· "c:\\MyDir" in C#, or "c:\MyDir" in Visual Basic.
· "MyDir\\MySubdir" in C#, or "MyDir\MySubDir" in Visual Basic.
· "\\\\MyServer\\MyShare" in C#, or "\\MyServer\MyShare" in Visual Basic.
Here is a sample using the path given by you:
UNCpathSample.zip
Some important points to remember:
1. Path names are limited to 248 characters
2. The specified path can also refer to a relative path or a Universal Naming Convention (UNC) path for a server and share name.
3. Ensure that your paths are well-formed when using methods that accept a path string .In C# path names should have \\ instead of singe \
4. If you don''t have permission it will generate FileIOPermission exception.
I think this would help you. Please take a look at the sample and let me if you have any other questions.
Thanks,
Ajish.
>The correct file path looks something like this:
>
>pdfDoc.Save("\\server\share\file_path")
>
>Thanks