Reading a data connection with a compressed file - InfoPath Dev
in

InfoPath Dev

Reading a data connection with a compressed file

Last post 12-08-2005 12:58 AM by Patrick Halstead. 3 replies.
Page 1 of 1 (4 items)
Sort Posts: Previous Next
  • 12-05-2005 02:29 PM

    • rjohnson
    • Top 500 Contributor
    • Joined on 09-01-2005
    • Australia
    • Posts 28

    Reading a data connection with a compressed file

    Hi,

    Is it possible to have a compressed XML or database file, which Infopath could use as a data connection.

    I know that if you add an XML file as part of the XSN file, it would automatically become compressed. However, if I want to use an XML file for multiple forms, then I'd have to place the XML file outside of the XSN.

    XML files and Access Database files tend to compress rather well, and I was wondering if there was a compressed format that InfoPath could read, as its data connection.

    - Reg
  • 12-05-2005 09:37 PM In reply to

    Re: Reading a data connection with a compressed file

    Hi Reg,
    Interesting question. You could use decompress a file with code. I know of no default way to import a compressed file into InfoPath and have InfoPath decompress it. However, the XSN contains an XSF manifest which is just XML. You could write some code to programmatically add the XML file to your XSF and then recab (re-compress the package) and deploy your solution like that. It's tricky but it has been done. Doing it dynamically would be even more masochistic, but is it's just code ... :)

    Patrick Halstead [InfoPath MVP]
    InfoPathDev
    Patrick Halstead
    Project Manager at Qdabra
  • 12-06-2005 10:03 PM In reply to

    • rjohnson
    • Top 500 Contributor
    • Joined on 09-01-2005
    • Australia
    • Posts 28

    Re: Reading a data connection with a compressed file

    Hi Patrick,

    Does your solution rely on inserting the XML file into the XSN?
    If it does, then it probably won't be the best solution for my situation, as I'd have to run a script of some sort to insert the XML document into the XSN.
    This probably would cause more problems than it solves.

    However, as always thanks for the reply.

    - Reg
  • 12-08-2005 12:58 AM In reply to

    Re: Reading a data connection with a compressed file

    Hi Reg,
    Well, you can extract the form files and then insert without running the script, but you are right in that it's tricky. This is definitely doable, but requires some work. If you are not willing to struggle with it over 1 week, then I'd say "nada".
    :)

    Patrick Halstead [InfoPath MVP]
    InfoPathDev
    Patrick Halstead
    Project Manager at Qdabra
Page 1 of 1 (4 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.