dim C Set C=CreateObject("DocConverter.DocConverterX") C.Convert "c:\source.DOC", "c:\dest.TIF", "-cTIF -log c:\doc.log" Response.Write C.ErrorMessage set C = nothing
dim C Set C=CreateObject("DocConverter.DocConverterX") Response.Clear Response.AddHeader "Content-Type", "binary/octet-stream" Rresponse.AddHeader "Content-Disposition", "attachment; filename=test.pdf" Response.BinaryWrite c.ConvertToStream("C:\www\ASP\Source.doc", "C:\www\ASP", "-cpdf -log c:\html.log") set C = nothing
Some more samples in C# specifically for ASP.net. If you need examples on other languages please contact us. We will create any example specially for you.
Note that ActiveX is 32-bit only. If you are trying to use activeX under 64-bit internet information server (IIS) activeX will not work. Use command line version instead (it works with both 32- and 64-bit servers).
Related Topics
Convert DOC to TIFF In Bulk Via Command Line© 2019. All rights reserved. CoolUtils File Converters