Hello,
I created a PDF file and it included with other files in a zip package.
When read the file created I would need to open a other file include in a package.
Is possible to create a link (UrlAction) to open files in the same virtual folder, or can I only use an existing route?
Best Regards
link open a external file
Re: link open a external file
Support · Jan 15, 2010Hello,
Yes, you can open files from the system without any problem. You will have to use the UrlAction class by specifying the file path. Below is a sample line of code for using the UrlAction
with files.
UrlAction action = new UrlAction(@"file:///C:/Temp/file.rtf");
Thanks,
ceTe Software Support Team.
Re: link open a external file
Forum member · Jan 18, 2010Hello,
Ok, I tried and it works, but I need to open a file that is in the same folder without knowing the package was saved on the client.
UrlAction action = new UrlAction (@ "file: / / / file.rtf");
is it possible?
Re: link open a external file
Support · Jan 18, 2010Hello,
You can open the files present in the same folder by using the name of the file without using the full path.
UrlAction actFile = new UrlAction("fw9AcroForm_03.pdf");
This opens the file if it is present in the same folder.
Thanks,
ceTe Software Support Team.
Re: link open a external file
Forum member · Jan 18, 2010thanks,I tried and it works.
I saw that you can open files saved in subfolders
Example : UrlAction actFile = new UrlAction("./subForlderName/fileName.pdf");