SpreadSheet Viewer Open XLS From Base64 String

I would like to ask whether the vue spreadsheet components could provide 'documentPath' like in Pdf Viewer so that i can pass
the base64 string to get an initial view of my excel corresponding to the base64 string.

<template>
  <div class="control-section">
    <div id="spreadsheet-default-section">
      <ejs-spreadsheet ref="spreadsheet" :openUrl="this.openUrl" :showRibbon="true" :showFormulaBar="true">
      </ejs-spreadsheet>
    </div>
  </div>
</template>

<script>
import "@syncfusion/ej2-spreadsheet/styles/material.css";
import Vue from "vue";
import { SpreadsheetPlugin } from '@syncfusion/ej2-vue-spreadsheet';

Vue.use(SpreadsheetPlugin);

export default Vue.extend({
    props: {
        dataSource: String
    },
    data: () => {
    return {
        openUrl: 'http://192.168.0.131:5000/api/spreadsheet/open'
    }
  }
});
</script>

<template>
  <div style="width:100%;height:100%;">
    <ejs-pdfviewer id="pdfViewer" :serviceUrl="serviceUrlzoomMode='FitToWidth' :documentPath="this.documentPath"></ejs-pdfviewer>
  </div>
</template>

<script>
import "@syncfusion/ej2-pdfviewer/styles/material.css";
import Vue from 'vue';
import { PdfViewerPluginToolbarMagnificationNavigationLinkAnnotation
BookmarkViewPrintTextSelectionTextSearch } from '@syncfusion/ej2-vue-pdfviewer';

Vue.use(PdfViewerPlugin);
export default {
    props: {
      documentPath: String
    },
    name: 'pdf-view',
  data () {
    return {
        serviceUrl:'http://192.168.0.131:5000/pdfviewer',
        };
    },
    provide: {
        PdfViewer: [ToolbarMagnificationNavigationLinkAnnotationBookmarkViewPrintTextSelectionTextSearch]
    }
}
</script>


1 Reply 1 reply marked as answer

SP Sangeetha Priya Murugan Syncfusion Team April 20, 2021 07:34 AM UTC

Hi Samuel, 
 
Thank you for contacting Syncfusion support. 
 
We have checked your reported requirement and it can be achievable in our Spreadsheet by using the open method. For more details, please refer the below links. 
 
To load the file from the external URL into the spreadsheet. 
 
  
To open/save the file from the server in spreadsheet by using the openFromJson and saveAsJson method.  
 
 
Could you please check the above details and get back to us, if you need any further assistance on this. 
 
Regards, 
Sangeetha M 


Marked as answer
Loader.
Up arrow icon