Hi, How can I read a file of Excel from Powerserver?
- You are here:
- Home
- Q&A
- Q&A
- PowerServer
- POWERSERVER EXCEL
Resolved
POWERSERVER EXCEL
- How-to
- Shirley Sanjuan
- PowerServer
- Wednesday, 4 October 2023 20:39 PM UTC
- Thursday, 5 October 2023 20:19 PM UTC
- PowerServer
- # Permalink
- Wednesday, 4 October 2023 20:52 PM UTC
- PowerServer
- # 1
HI Shirley;
You would have two choices ...
- Since PS is Database only oriented, you would have to store the XLSX file in a DB Blob column and then perform a SelectBlob command in the PS Application.
- You could build your own Web API using SnapDevelop (VS, etc) IDE where you have full scripting capabilities in C#. Then read the XLSX in C# code directly from an external file. Then return that to a PB App (or whatever calling App) as either a BLOB or Base64 data stream.
Regards ... Chris
- Shirley Sanjuan
- Wednesday, 4 October 2023 20:56 PM UTC
-
Helpful Loading... Helpful 0
- Chris Pollach @Appeon
- Wednesday, 4 October 2023 20:59 PM UTC
-
Helpful Loading... Helpful 0
- Wednesday, 4 October 2023 21:32 PM UTC
- PowerServer
- # 2
just open the file directly from the users machine:
1. have your users save excel as tab or csv file then import that into datawindow/store
2. use ole to read (or write) excel: ConnectToNewObject("excel.application") You can use ole to open the file then save it as csv/tab delimited. or you can read it cell by cell.
3. use a 3rd party dll or .net to read it directly into something like tab/csv format
4. use excel 'database' driver and open it using adodb via ole: ConnectToNewObject ( "ADODB.Connection" )
---------------
if it's a lot of heavy processing that takes a very long time, then it probably makes sense to do the work on a server so you would upload the file then run a process (pb or .net or something) and return the results to the user.
- Chris Pollach @Appeon
- Wednesday, 4 October 2023 23:12 PM UTC
I think that Shirley's question is a bit ambiguous ... does she mean:
1) Process XLSX files in the "Middle Tier" and return them to the call App?
2) Process the XLSX files in the client App?
My answer was based on assumption #1 (like we could do in EAServer). ;-)
Regards .. Chris
-
Helpful Loading... Helpful 0
- Armeen Mazda @Appeon
- Thursday, 5 October 2023 01:43 AM UTC
-
Helpful Loading... Helpful 0
- mike S
- Thursday, 5 October 2023 04:03 AM UTC
-
Helpful Loading... Helpful 0
- Page :
- 1
However, you are not allowed to reply to this question.