-
Convert the Excel input file from csv to xlsx such as
statement_sample.xlsx
.Make sure to add a word
END
to the end of the content in the Excel file.I will send you a sample link of this sample file.
-
please find
application.properties
file, and change 3 linesspring.datasource.url
,report.location
,report.jasper-filename
.spring.datasource.url
could be any folder as long as its empty.report.location
refers to the folder location of your Excel input files.report.jasper-filename
refers to the location ofMasterReport.jasper
file in the project folder, you simply only need to change the folder location and don't change the filename! -
run this command to start up the application:
mvn clean generate-sources install spring-boot:run
.You probably will see a google link when you first time run the application,
then please open the link in chrome browser and login for a proper account.
-
to shut down the application simply use keyboard
CTRL+C
. -
Now you can use Jasper Studio to update the layout of
MasterReport.jrxml
file- simply use mouse to drag and play!
-
in the
src/main/resources
, there is a fileclient_secret.json
, its based on a Google account;do not spread it and I will let you know how to generate it from Google for yourself later.
-
Remember your Excel filename such as
statement_sample
, then open browserhttp://localhost:7788/report/statement_sample
, you will see the generated PDF file names.
cd somewhere
go to somewhere directorycd ..
go to upper level directorycd ../../..
go to 3 levels upopen .
open current folder in Mac Finderpwd
show current directory pathcp somewhere/filename .
copy filename from somewhere to current directorycp -r somedirectory .
copy some directory (whole folder) to current directoryrm -rf something
delete something (either folder or file)cd ~
go to $HOME directory