Hello I am running DOORS 8.3. I have some some Text attributes which contains a URL link to a Website. The URL is actually a link to a PDF document . An example of a link will be http://www.maa.mod.uk/linkedfiles/regulation/1000_series/ra1002.pdf mostly the links from the website http://www.maa.mod.uk/regulation/1000_series.htm will be referenced I need to follow the link, get the PDF which it points to, and embed the PDF into an object. I can do the embedding part quite easily as long at the filename is held locally (e.g C:/TEMP/PDFs/501.pdf ) , but I need to do it via the URL. Nearest topic I have found is https://www.ibm.com/developerworks/community/forums/html/topic?id=77777777-0000-0000-0000-000014632319&ps=25 - however this works with Text based files. Im not sure what I need to do to make it work with binary files Can anyone help with an example please Thanks
amoghul - Wed Oct 08 09:38:39 EDT 2014 |
Re: Read url from Object and save PDF file which it points to I guess you will not get far with MSXML2 here ... You probably need to use a different component, there should be components that allow you downloading a file directly (e.g. internet explorer, etc.). If you find no COM object you can check if you might have the possibility to download the file from the shell, e.g. using powershell or a command line tool like curl. Last but not least, there is the htmlView component which you might be able to trick into downloading a file. If you decided on a possible way then we can try to make an example... Regards, Mathias |
Re: Read url from Object and save PDF file which it points to Mathias Mamsch - Thu Oct 09 04:11:51 EDT 2014 I guess you will not get far with MSXML2 here ... You probably need to use a different component, there should be components that allow you downloading a file directly (e.g. internet explorer, etc.). If you find no COM object you can check if you might have the possibility to download the file from the shell, e.g. using powershell or a command line tool like curl. Last but not least, there is the htmlView component which you might be able to trick into downloading a file. If you decided on a possible way then we can try to make an example... Regards, Mathias Hi Mathias Thanks for the reply. The post I refer to is actually one of yours, which works for text based files, but not binary. I dont mind using something similar to that post, as long as It works with the binary files. I am not familiar with MSXML, and cant (as of yet) find any command which will do this for me. I am going to see if I can write a VB program which can be executed via DOORS to store the launched url (PDF) into a temp file, and then read into DOORS object from the temp file using the oleInsert DXL command any suggestions welcome |