Collaborate with over 60,000 Qlik technologists and members around the world to get answers to your questions, and maximize success.Join Us
Qlik NPrinting 17 HTML reports are generated as zipped files that contain a single HTML file that has inline CSS and all static resources embedded.
One workaround is to use a tool like 7-zip. You can create a batch file and schedule it to periodically check for zipped files in your NPrinting destination folder and unzip them into a temporary holding folder from where the MOVE command can be used to move & rename the extracted HTML file to your final destination folder.
Assuming that the html file should always have the name Result.html, here is a sample batch file which has in-line comments:
SET "srcdir=C:\Temp\FromDir" REM Source folder (NPrinting destination folder)
SET "tgtdir=C:\Temp\ToDir" REM Target folder (Final destination folder)
SET "tmpdir=C:\Temp\extracted-tmp" REM Temporary holding folder
REM empties the temporary holding folder
DEL /q "%tmpdir%\*"
REM although the temporary holding folder should have only one .zip file
REM we still use a loop as the name of the .zip file is not known
REM You could remove the loop and hard code the name in place of "%%Z"
REM It is not possible to know the name of the extracted HTML file in advance
REM hence the second FOR loop
FOR %%Z IN ("%srcdir%\*.zip") DO (
"C:\Program Files\7-Zip\7z.exe" e "%%Z" -o"%tmpdir%"
FOR %%I IN ("%tmpdir%\*") DO MOVE "%%I" "%tgtdir%\Result.html")
Search Qlik's Support Knowledge database or request assisted support for highly complex issues.Submit a case
Experiencing a serious issue, please contact us by phone. View phone numbers and hours by region.