Hi,
I've tried to use "Excel_Package_New" component to write the customize formatted values in excel file. This works good when I deployed the application to the servers which I have in my infrastructure. When I tried the same solution in Outystem cloud, I always gets "Access to the path 'c:\Example.xlsx' is denied." error while exporting the records in excel file where I am writing the values in customize format.
Any help would be much appreciated.
Thanks
Hi Pradeep,
If you have a default Excel to use as template, add it as a Resource:
combined wit Path_GetApplicationDirectory (the one I mentioned my the previous post) you can then read that file.
If the template is dynamic, you need to go for a different solution, e.g. store it in the database in a dedicated Entity, an retrieve it when needed. You need to have a Workbook_Open Action in that case that execpts the Binary Data as input, rather than a file path (which would be a good idea anyway).
Kilian Hekhuis wrote:
Thanks Killan, It's worked
You don't have permision to Save it the "C:\"; but you have full access on the webserver; you could save it to
GetOwnerURLPath() + "/Example.xlsx"
Hope this helps.
Kind regards,
Matthias
Matthias Preuter wrote:
Hello Matthias,
Before putting my problem to forum, I've tried for this as well which you suggested.
Thanks,
Pradeep.
What error did you get when using GetOwnerURLPath()?
I got this error "Could not find a part of the path 'c:\Bookings_Interface\Example.xlsx'."
And? This did work right?
It did not work
GetOwnerURLPath() never returns a Windows path, so it's impossible that GetOwnerURLPath() gives you the "c:\Bookings_Interface". I'm not sure what you did, but not what you claim you did.
Let me send you the OML which I'm using.
Pradeep Dubey wrote:
Killan,
Please see attached OML files and dependencies. Also attached the screenshot
I'm seeing a few weird things there:
I wrote this to download the booking records in the formatted excel. Since I dont have access to cloud server where I can put excel file to use it. My question, how we can write well formatted excel when working on cloud. As this is working good to inhouse environment. Can you suggest some example
You're welcome. Happy coding!