Ahh, ok that makes sense. I started to look for those then hoped there might be some trickery in ML that would do it quicker/easier. Thanks.
On Wed, Jul 12, 2017 at 3:24 PM, Justin Makeig <[email protected]> wrote: > > xdmp:set-response-content-type("application/pdf") > > > That only sets the Content-Type HTTP header. You'll still need to prepare > the response body, i.e. the Excel or PDF itself. I wouldn't recommend > trying to do that in XQuery. There are many libraries in Java, Node, > Python, etc. that can take XML and turn it into one of those binary formats. > > Justin > > -- > Justin Makeig > Director, Product Management > MarkLogic > [email protected] > > > On Jul 12, 2017, at 3:16 PM, Kari Cowan <[email protected]> wrote: > > > > Do you have an example with a bit more detail Would you do it in xQuery > or would it need to be set in xcc/java response? > > > > xdmp:set-response-content-type("application/pdf") > > xdmp:set-response-content-type("application/vnd.ms-excel") > > > > On Mon, Jun 26, 2017 at 10:14 PM, VISHNU SINGH <[email protected]> > wrote: > > We can use xdmp function as below:- > > xdmp:set-response-content-type("application/vnd.ms-excel") > > > > On 24 June 2017 at 01:42, Kari Cowan <[email protected]> wrote: > > > > Is there any function to convert an xqy query response to a PDF or Excel > file? > > > > _______________________________________________ > > General mailing list > > [email protected] > > Manage your subscription at: > > http://developer.marklogic.com/mailman/listinfo/general > > > > > > > > > > -- > > Vishnu Singh | http://marklogicgd.blogspot.in/ > > > > _______________________________________________ > > General mailing list > > [email protected] > > Manage your subscription at: > > http://developer.marklogic.com/mailman/listinfo/general > > > > > > > > > > -- > > Kari Cowan :: Web Developer :: ALM Media > > 1035 Market St. Suite 550, San Francisco, CA 94103 > > iPhone/Text/FaceTime: +1 4157 444 762 > > _______________________________________________ > > General mailing list > > [email protected] > > Manage your subscription at: > > http://developer.marklogic.com/mailman/listinfo/general > > > > > _______________________________________________ > General mailing list > [email protected] > Manage your subscription at: > http://developer.marklogic.com/mailman/listinfo/general > -- Kari Cowan :: Web Developer :: ALM Media 1035 Market St. Suite 550, San Francisco, CA 94103 iPhone/Text/FaceTime: +1 4157 444 762
_______________________________________________ General mailing list [email protected] Manage your subscription at: http://developer.marklogic.com/mailman/listinfo/general
