Re: [MarkLogic Dev General] Convert output to PDF or Excel

2017-07-12 Thread Kari Cowan
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 
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
> jmak...@marklogic.com
>
> > On Jul 12, 2017, at 3:16 PM, Kari Cowan  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 
> 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  wrote:
> >
> > Is there any function to convert an xqy query response to a PDF or Excel
> file?
> >
> > ___
> > General mailing list
> > General@developer.marklogic.com
> > Manage your subscription at:
> > http://developer.marklogic.com/mailman/listinfo/general
> >
> >
> >
> >
> > --
> > Vishnu Singh | http://marklogicgd.blogspot.in/
> >
> > ___
> > General mailing list
> > General@developer.marklogic.com
> > 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
> > General@developer.marklogic.com
> > Manage your subscription at:
> > http://developer.marklogic.com/mailman/listinfo/general
>
>
>
>
> ___
> General mailing list
> General@developer.marklogic.com
> 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
General@developer.marklogic.com
Manage your subscription at: 
http://developer.marklogic.com/mailman/listinfo/general


Re: [MarkLogic Dev General] Convert output to PDF or Excel

2017-07-12 Thread Justin Makeig
> 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
jmak...@marklogic.com

> On Jul 12, 2017, at 3:16 PM, Kari Cowan  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  
> 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  wrote:
> 
> Is there any function to convert an xqy query response to a PDF or Excel file?
> 
> ___
> General mailing list
> General@developer.marklogic.com
> Manage your subscription at:
> http://developer.marklogic.com/mailman/listinfo/general
> 
> 
> 
> 
> -- 
> Vishnu Singh | http://marklogicgd.blogspot.in/
> 
> ___
> General mailing list
> General@developer.marklogic.com
> 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
> General@developer.marklogic.com
> Manage your subscription at: 
> http://developer.marklogic.com/mailman/listinfo/general




___
General mailing list
General@developer.marklogic.com
Manage your subscription at: 
http://developer.marklogic.com/mailman/listinfo/general


Re: [MarkLogic Dev General] Convert output to PDF or Excel

2017-07-12 Thread Kari Cowan
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 
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  wrote:
>
>>
>> Is there any function to convert an xqy query response to a PDF or Excel
>> file?
>>
>> ___
>> General mailing list
>> General@developer.marklogic.com
>> Manage your subscription at:
>> http://developer.marklogic.com/mailman/listinfo/general
>>
>>
>
>
> --
> Vishnu Singh | http://marklogicgd.blogspot.in/
>
> ___
> General mailing list
> General@developer.marklogic.com
> 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
General@developer.marklogic.com
Manage your subscription at: 
http://developer.marklogic.com/mailman/listinfo/general


Re: [MarkLogic Dev General] Convert output to PDF or Excel

2017-07-05 Thread Kari Cowan
Ta.  I will give that a try - didn't realize that was an option.

On Mon, Jun 26, 2017 at 10:14 PM, VISHNU SINGH 
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  wrote:
>
>>
>> Is there any function to convert an xqy query response to a PDF or Excel
>> file?
>>
>> ___
>> General mailing list
>> General@developer.marklogic.com
>> Manage your subscription at:
>> http://developer.marklogic.com/mailman/listinfo/general
>>
>>
>
>
> --
> Vishnu Singh | http://marklogicgd.blogspot.in/
>
> ___
> General mailing list
> General@developer.marklogic.com
> Manage your subscription at:
> http://developer.marklogic.com/mailman/listinfo/general
>
>


-- 

Kari Cowan :: Developer :: ALM Media

1035 Market St. Suite 550, San Francisco, CA 94103

Office: 415-490-9961 :: iPhone: 415-744-4762

JoinMe: https://join.me/kari.cowan  +1.646.307.1990 // ID: 318-953-882#
___
General mailing list
General@developer.marklogic.com
Manage your subscription at: 
http://developer.marklogic.com/mailman/listinfo/general


Re: [MarkLogic Dev General] Convert output to PDF or Excel

2017-06-26 Thread VISHNU SINGH
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  wrote:

>
> Is there any function to convert an xqy query response to a PDF or Excel
> file?
>
> ___
> General mailing list
> General@developer.marklogic.com
> Manage your subscription at:
> http://developer.marklogic.com/mailman/listinfo/general
>
>


-- 
Vishnu Singh | http://marklogicgd.blogspot.in/
___
General mailing list
General@developer.marklogic.com
Manage your subscription at: 
http://developer.marklogic.com/mailman/listinfo/general


[MarkLogic Dev General] Convert output to PDF or Excel

2017-06-23 Thread Kari Cowan
Is there any function to convert an xqy query response to a PDF or Excel
file?
___
General mailing list
General@developer.marklogic.com
Manage your subscription at: 
http://developer.marklogic.com/mailman/listinfo/general