react-excel-renderer icon indicating copy to clipboard operation
react-excel-renderer copied to clipboard

How to use this without input

Open wallythewebdev opened this issue 3 years ago • 2 comments

HI there -

I tried to rewrite some of the code so that I could reference a file path and use that / instead of using a HTML input file -

After a fairly large amount of searching my losing my mind a little and was wondering if I could ask for a little help.

Can you reference a local file path (relative to your react src folder i.e. src/assets/data.xlsx) and require that into the react app - then have the code covert that to a JSON object which your react app can populate a component with?

Thank you for any help in advance, Wally

wallythewebdev avatar Aug 28 '20 16:08 wallythewebdev

Hi,

I don't exactly understand what you mean. Could you kindly explain what you're trying to achieve ?

Regards, Ashish Deshpande

On Fri, 28 Aug, 2020, 10:11 pm wallythewebdev, [email protected] wrote:

HI there -

I tried to rewrite some of the code so that I could reference a file path and use that / instead of using a HTML input file -

After a fairly large amount of searching my losing my mind a little and was wondering if I could ask for a little help.

Can you reference a local file path (relative to your react src folder i.e. src/assets/data.xlsx) and require that into the react app - then have the code covert that to a JSON object which your react app can populate a component with?

Thank you for any help in advance, Wally

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/ashishd751/react-excel-renderer/issues/20, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACAIS6OWJYS7YMKGS54BVWTSC7M35ANCNFSM4QOKCAWA .

ashishd751 avatar Aug 29 '20 07:08 ashishd751

Hi Ashish, Hope you are well. The thing we want to achieve means me and wallythewebdev (above developer) is that we have an excel file but we don't want to select it manually, instead, it can be selected automatically by serving a file name or file path. Likewise, so can you please help us.

More specifically, we want to use excel in useEffect when component loads.

Thanks & Regards, Muhmmad Bilal

NotBestButUnique avatar May 26 '21 05:05 NotBestButUnique