| | ExportToFile | |
rtdImageResource Across Down isNew Image As rtGraphic | version 1.5
Function ExportToFile (filepath As String) Exports contained image to file. Parameter Filepath - if it ends in 3 letter extension is used as is, else gets appended "gif" or "jpg" depending on contained image type. Thus assuming we have used the resource in a tricky way to import pdf file instead of an image - filepath = "c:\temp\football.pdf" will export the content to file "football.pdf" while filepath = "c:\temp\football" will export to file "c:\temp\football.gif" as GIF is used internally for storage of specifically unrecognized content. | |