0

Can any one plz share the code for converting csv file to html .Plz share the nodeJs code.

I checked in the groupdocs documentation but its only working for docx to html conversion and not working for csv to html conversion.

Lokesh
  • 9
  • 1

1 Answers1

0

Have you tried this?

const conversion_cloud = require("groupdocs-conversion-cloud");

const clientId = "XXXX-XXXX-XXXX-XXXX";
const clientSecret = "XXXXXXXXXXXXXXXX";

const convertApi = conversion_cloud.ConvertApi.fromKeys(clientId, clientSecret);

let settings = new conversion_cloud.ConvertSettings();
settings.filePath = "path/to/csv/file";
settings.format = "html";
settings.outputPath = "ConvertedFiles";

let result = await convertApi.convertDocument(new conversion_cloud.ConvertDocumentRequest(settings));

Was taken from GroupDocs documentation

justmavi
  • 21
  • 2
  • yes i tried ,but when i m printing the result ,Inside html body i m getting.

    This page uses frames, but your browser doesn't support them.

    – Lokesh Jul 31 '23 at 10:13