Skip to content

Commit

Permalink
Review the demo template
Browse files Browse the repository at this point in the history
  • Loading branch information
araczkowski committed Jun 1, 2024
1 parent 0f244f3 commit b146498
Show file tree
Hide file tree
Showing 7 changed files with 22 additions and 14 deletions.
Binary file not shown.
6 changes: 3 additions & 3 deletions Code.gs.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
// Copyright © 2024 SVIETE Andrzej Raczkowski
// Description: Google Apps Script code for ASReporter - Application Script Reporter
// Description: Google Apps Script code for AsReporter - Application Script Reporter
// This app is used to generate reports based on the templates and data in JSON format

// global variables
const TEMPLATES_FOLDER_NAME = 'ASReporter Templates Files';
const TEMPLATES_FOLDER_NAME = 'AsReporter Templates Files';
let fileType = "application/pdf";
let fileName = "filename.pdf";

Expand Down Expand Up @@ -40,7 +40,7 @@ function doGet(e) {
<div class="form-signin">
<img class="mb-4" src="https://raw.githubusercontent.com/araczkowski/AsReporter/main/images/about.webp" alt="SVIETE" style="max-width:80%;">
<h1 class="h3 mb-3 font-weight-normal">Please find the instruction and source code on Github:</h1>
<h2 class="h3 mb-3 font-weight-normal"><a href="https://github.com/araczkowski/ASReporter" target="_blank">Github AsReporter Project</a></h3>
<h2 class="h3 mb-3 font-weight-normal"><a href="https://github.com/araczkowski/AsReporter" target="_blank">Github AsReporter Project</a></h3>
<p class="mt-5 mb-3 text-muted"> © 2024 SVIETE Andrzej Raczkowski</p>
</div>
</body>
Expand Down
30 changes: 19 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
# ASReporter - Application Script Reporter
# AsReporter - Application Script Reporter

Application Script Reporter is a business applications that produce Office documents and reports beased on templates and JSON data. ASReporter is a Web app writen in Google Apps Script, it enabling any web application to generate your Office (Word, Excel, PowerPoint), HTML, Text and PDF-documents in no time and effort - ASReporter make printing, reporting and exporting your data fast and easy.
Application Script Reporter is a business applications that produce Office documents and reports beased on templates and JSON data. AsReporter is a Web app writen in Google Apps Script, it enabling any web application to generate your Office (Word, Excel, PowerPoint), HTML, Text and PDF-documents in no time and effort - AsReporter make printing, reporting and exporting your data fast and easy.

## Architecture overview

![diagram](images/ASReporter.png?raw=true "ASReporter diagram")
![diagram](images/AsReporter.png?raw=true "AsReporter diagram")

## Installation and integration with your system - step by step

Expand All @@ -17,7 +17,7 @@ Application Script Reporter is a business applications that produce Office docum
#### 2. Click button "New project" to create a new project

![picture2](images/2.png?raw=true "Apps Script 2"):
you can name it -> ``ASReporter Office Print Server``
you can name it -> ``AsReporter Office Print Server``

#### 3. Add Apps script code

Expand All @@ -39,7 +39,7 @@ after this click the ``Deploy`` button:
if you are doing this for the first time you need to ``Authorize access``:
![picture7](images/7.png?raw=true "Apps Script 7")

and allow ASReporter to manage Google Drive files:
and allow AsReporter to manage Google Drive files:
![picture8](images/8.png?raw=true "Apps Script 8")

#### 4. Test Web app
Expand All @@ -50,16 +50,24 @@ After the deployment you can test your app - just copy the app URL:
and paste it to the browser - you will see the app info page
![picture10](images/10.png?raw=true "Apps Script 10")

### Create report templates folder in Google Drive
### Create report template in Google Drive

#### 1. Go to this URL -> ``https://drive.google.com/``
#### 1. Copy the folder with demo template

#### 2. Upload folder with files from this repo ``ASReporter Files``
Go to -> https://drive.google.com/
Copy and Paste the folder ``AsReporter Templates Files`` from this repo to the ``Google Drive`` -> ``AsReporter Templates Files``:
![picture11](images/11.png?raw=true "Apps Script 11")

### Call script from browser
#### 2. Review the demo template

#### 1. GET the info about Web app
In the folder ``Google Drive`` -> ``AsReporter Templates Files`` there is a file ``Demo report template`` open it in Google Docs to see how the template is writen:

#### 2. Use ``BrowserAppCode.js`` to POST report rendering and download

### Call report generation from any web app

#### 1. Use ``BrowserAppCode.js`` to POST report rendering and download

Go to any page in the browser, for example ``https://google.com`` and open a browser console via ``F12``.
Now paste to the console code from the script ``BrowserAppCode.js``

#### 3. Use ``ApexAppCode.js`` in Oracle APEX to POST report rendering and download from Oracle APEX
Binary file modified images/10.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/11.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified images/about.webp
Binary file not shown.
Binary file added images/sviete_logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit b146498

Please sign in to comment.