diff --git a/manifest.xml b/manifest.xml
index b47b791..5366163 100644
--- a/manifest.xml
+++ b/manifest.xml
@@ -20,6 +20,8 @@
+
+
@@ -65,6 +67,82 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ ButtonId1
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ ButtonId1
+
+
+
+
+
+
+
+
diff --git a/src/taskpane/taskpane.html b/src/taskpane/taskpane.html
index 2d127b8..1a6034e 100644
--- a/src/taskpane/taskpane.html
+++ b/src/taskpane/taskpane.html
@@ -34,15 +34,15 @@
diff --git a/src/taskpane/taskpane.ts b/src/taskpane/taskpane.ts
index 4ed8c16..cd9c7bf 100644
--- a/src/taskpane/taskpane.ts
+++ b/src/taskpane/taskpane.ts
@@ -49,11 +49,14 @@ Office.onReady(async (info) => {
language = Office.context.displayLanguage.toLowerCase();
await initi18n(language);
translate();
-
- if (info.host === Office.HostType.Word) {
- authorized = await ezpPrinting.checkAuth();
- authSection.style.display = authorized ? "none" : "block";
-
+ authorized = await ezpPrinting.checkAuth();
+ authSection.style.display = authorized ? "none" : "block";
+
+ if (
+ info.host === Office.HostType.Word ||
+ info.host === Office.HostType.Excel ||
+ info.host === Office.HostType.PowerPoint
+ ) {
getFile().then(() => {
if (authorized) {
authSection.style.display = "none";
@@ -65,6 +68,8 @@ Office.onReady(async (info) => {
loadingSection.style.display = "none";
}
});
+ } else if (info.host === Office.HostType.Outlook) {
+ // get email file
}
});
@@ -133,6 +138,7 @@ async function onGotAllSlices(docdataSlices) {
fileData = docdata;
const filearray = new Uint8Array(fileData);
const filestring = filearray.toString();
+ // console.log(filestring);
ezpPrinting.setAttribute("filedata", filestring);
ezpPrinting.setAttribute("filename", "test.pdf");
if (authorized) ezpPrinting.open().then(() => (loadingSection.style.display = "none"));