Web app non starter?

  1. 3 months ago

    Gareth S

    Aug 28 Pre-Release Testers, Xojo Pro

    Hi there

    Be bought a Xojo Pro licence a while ago, and trying to get to grips with it.

    Is the following possible in Xojo as a web app?

    Click button to open file dialog box to choose a CSV or XLS file on the local computer

    Read said file into a ListBox or third party grid control

    Rejig the contents of the file, then output to a user editable Word document or similar?

    I need to know if this is viable in Xojo, or if we should look for a different dev tool?

    Many thanks,
    Gareth

  2. Isaac R

    Aug 28 Pre-Release Testers, Xojo Pro Minnesota, USA

    Definitely possible. The MBS plugin can modify or generate Word documents: https://www.monkeybreadsoftware.net/class-wordfilembs.shtml

    There's also a built in WordApplication object but this would require Word to be installed and only works on Windows: https://docs.xojo.com/WordApplication

  3. 2 months ago

    David C

    Aug 29 Pre-Release Testers, Xojo Pro Derby, ITM

    The only issue is really output as Word — would a CSV, tab-delimited or PDF be OK as an alternative?

    1. Uploading is OK with the WebFileUploader,
    2. parsing a CSV file is straightforward and there are free methods to read/write them,
    3. parsing an XLSX file may require a paid plugin,
    4. displaying the data in a ListBox is OK as long as it is not too wide or long (gets slow and funky),
    5. rejigging the ListBox is up to you,
    6. out putting a ListBox to CSV or tab-delimited is trivial, if to PDF I would create an HTML table then use the free wkHTML2PDF,
    7. to download the file is trivial, but I suggest you zip it first which may involve a system call or a paid plugin.

or Sign Up to reply!