How to handle miscellaneous files (.xsl extension) without downloading to end user's machine

We are trying to upgrade our automation solution from version 19.1.125 to 22.1.28. We have some xsl files which contains HTML, CSS and JavaScript to format and display Response data. Based on the solution suggested here, We will need to download these files to user’s machine. Could you please suggest some alternative solution for handling these files without downloading as we have restriction in downloading since these files contains some program logics

@AswathiK16587086 You can still attach files to the deployment package in 22. If you’d like to do that, here is how.

  1. From the Project Tab, select Add–>Advanced–>Deployable file.
  2. Attach whatever files you like.
  3. In your project, make sure none of your project resources (automations, forms, applications, etc.) are using any of the files on startup. If they are disable them from starting automatically and then start them manually after you save the files.
  4. Use the ProjectStarted event to call the SavePackageFile method.
  5. This method takes two parameters; the first is the source. If you had attached a file named Book1.xlsx, the source parameter would be “Miscellaneous Files\Book1.xlsx”.
  6. The second parameter is destination. Here you would put a full path to where on the machine you wanted to save the file. For example; “C:\Temp\Book1.xlsx”.

If you simply need the file contents and do not need to save them to disk, then there is a ReadPackageFile method you can use to read the contents into memory.