jnowakowski | Posts: 10

Document filename

0 votes
Can a document filename refer to a file on a network drive as in the following: documentBuilder.FromFile(fileName)

harishaidary | Posts: 1812

Reply to: Document filename

0 votes
Yes you can definitely upload a file from a network drive. You would have to specify the complete path to your document. Here is an example:
 .WithDocument(DocumentBuilder.NewDocumentNamed("sample_nda")
                                    .FromFile("P:/Documents/sample_nda.pdf")
where P:/ is my network drive. Hope this helps!

jnowakowski | Posts: 10

Reply to: Document filename

0 votes
Can I specify the filename as shown below, or do I need to map a drive letter? @"\\MyServerName\FolderName\filename.pdf"

harishaidary | Posts: 1812

Reply to: Document filename

0 votes
That would also work. Mapping a network drive is not necessary.

Hello! Looks like you're enjoying the discussion, but haven't signed up for an account.

When you create an account, we remember exactly what you've read, so you always come right back where you left off