PDFsharp & MigraDoc Foundation

PDFsharp - A .NET library for processing PDF & MigraDoc Foundation - Creating documents on the fly
It is currently Fri Mar 29, 2024 12:26 pm

All times are UTC


Forum rules


Please read this before posting on this forum: Forum Rules



Post new topic Reply to topic  [ 4 posts ] 
Author Message
PostPosted: Wed Nov 28, 2012 12:55 am 
Offline

Joined: Thu Oct 04, 2012 4:46 am
Posts: 10
I am trying to create a link to another pdf on the local network using migradoc and MS windows filesystem.

what name and hyperlink type are appropriate for this?

I have so far not been able to link with
@"\\networkMachine\a\b\target.pdf",
@"file://\\networkMachine\a\b\target.pdf",
@"file://///networkMachine/a/b/target.pdf"
and any combination of HyperlinkType.Web or HyperlinkType.File

links to local drive (C:) work fine.

Thanks for any help.


Top
 Profile  
Reply with quote  
PostPosted: Wed Nov 28, 2012 9:51 am 
Offline
PDFsharp Guru
User avatar

Joined: Mon Oct 16, 2006 8:16 am
Posts: 3095
Location: Cologne, Germany
I haven't tried with PDF, but IMHO you could try this:
@"file://networkMachine/a/b/target.pdf"

See also:
http://en.wikipedia.org/wiki/File_URI_scheme

_________________
Regards
Thomas Hoevel
PDFsharp Team


Top
 Profile  
Reply with quote  
PostPosted: Thu Nov 29, 2012 2:38 am 
Offline

Joined: Thu Oct 04, 2012 4:46 am
Posts: 10
Thanks for your help. Eventual testing revealed (when launched from a saved file on the local drive):
_web=HyperlinkType.Web
_file = HyperlinkType.File
FF = firefox
Acr = Acrobat
yes = launched
FF |Acr
yes|yes|file://///intranetServerName/Folder1/Folder2/TestFile_web.pdf
yes|no |file://///intranetServerName/Folder1/Folder2/TestFile_file.pdf
yes|yes|file://intranetServerName/Folder1/Folder2/TestFile_web.pdf
yes|no |file://intranetServerName/Folder1/Folder2/TestFile_file.pdf
no |yes|file://\\intranetServerName\Folder1\Folder2\TestFile_web.pdf
yes|no |file://\\intranetServerName\Folder1\Folder2\TestFile_file.pdf
no |no |\\intranetServerName\Folder1\Folder2\TestFile_web.pdf
yes|yes|\\intranetServerName\Folder1\Folder2\TestFile_file.pdf

Nothing launched appropriately in opera.

When viewed over the web on a different domain to the intranetServer, the final (windows path) did not work.

hopefully this might save someone a few hours time!!


Top
 Profile  
Reply with quote  
PostPosted: Fri Oct 10, 2014 9:45 am 
Offline

Joined: Fri Oct 10, 2014 8:58 am
Posts: 3
Can i have the code Please


Thanks


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 178 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Privacy Policy, Data Protection Declaration, Impressum
Powered by phpBB® Forum Software © phpBB Group