Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
P
proview
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Esteban Blanc
proview
Commits
20a278ee
Commit
20a278ee
authored
Feb 05, 2013
by
Claes Sjofors
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Report display fix
parent
27618d98
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
35 additions
and
11 deletions
+35
-11
src/exe/rt_report/src/rt_report.cpp
src/exe/rt_report/src/rt_report.cpp
+35
-11
No files found.
src/exe/rt_report/src/rt_report.cpp
View file @
20a278ee
...
@@ -302,6 +302,10 @@ void rt_report::create_report( pwr_sClass_Report *o)
...
@@ -302,6 +302,10 @@ void rt_report::create_report( pwr_sClass_Report *o)
switch
(
o
->
DocumentFormat
)
{
switch
(
o
->
DocumentFormat
)
{
case
pwr_eDocumentFormatEnum_PDF
:
case
pwr_eDocumentFormatEnum_PDF
:
// Convert to pdf
// Convert to pdf
if
(
strcmp
(
display
,
""
)
!=
0
)
sprintf
(
cmd
,
"export DISPLAY=%s;co_convert -f -d %s %s"
,
display
,
"$pwrp_lis"
,
tmpfile
);
else
sprintf
(
cmd
,
"co_convert -f -d %s %s"
,
sprintf
(
cmd
,
"co_convert -f -d %s %s"
,
"$pwrp_lis"
,
tmpfile
);
"$pwrp_lis"
,
tmpfile
);
system
(
cmd
);
system
(
cmd
);
...
@@ -309,6 +313,10 @@ void rt_report::create_report( pwr_sClass_Report *o)
...
@@ -309,6 +313,10 @@ void rt_report::create_report( pwr_sClass_Report *o)
break
;
break
;
case
pwr_eDocumentFormatEnum_Html
:
case
pwr_eDocumentFormatEnum_Html
:
// Convert to pdf
// Convert to pdf
if
(
strcmp
(
display
,
""
)
!=
0
)
sprintf
(
cmd
,
"export DISPLAY=%s;co_convert -s -d %s %s"
,
display
,
"$pwrp_lis"
,
tmpfile
);
else
sprintf
(
cmd
,
"co_convert -s -d %s %s"
,
sprintf
(
cmd
,
"co_convert -s -d %s %s"
,
"$pwrp_lis"
,
tmpfile
);
"$pwrp_lis"
,
tmpfile
);
system
(
cmd
);
system
(
cmd
);
...
@@ -504,6 +512,10 @@ void rt_report::create_report( pwr_sClass_Report *o)
...
@@ -504,6 +512,10 @@ void rt_report::create_report( pwr_sClass_Report *o)
pwr_tCmd
cmd
;
pwr_tCmd
cmd
;
pwr_tFileName
target_file
;
pwr_tFileName
target_file
;
if
(
strcmp
(
display
,
""
)
!=
0
)
sprintf
(
cmd
,
"export DISPLAY=%s;co_convert -n -d %s %s"
,
display
,
"$pwrp_lis"
,
tmpfile
);
else
sprintf
(
cmd
,
"co_convert -n -d %s %s"
,
sprintf
(
cmd
,
"co_convert -n -d %s %s"
,
"$pwrp_lis"
,
tmpfile
);
"$pwrp_lis"
,
tmpfile
);
system
(
cmd
);
system
(
cmd
);
...
@@ -540,6 +552,10 @@ void rt_report::create_report( pwr_sClass_Report *o)
...
@@ -540,6 +552,10 @@ void rt_report::create_report( pwr_sClass_Report *o)
switch
(
o
->
DocumentFormat
)
{
switch
(
o
->
DocumentFormat
)
{
case
pwr_eDocumentFormatEnum_PDF
:
case
pwr_eDocumentFormatEnum_PDF
:
// Convert to pdf
// Convert to pdf
if
(
strcmp
(
display
,
""
)
!=
0
)
sprintf
(
cmd
,
"export DISPLAY=%s;co_convert -f -d %s %s"
,
display
,
"$pwrp_lis"
,
tmpfile
);
else
sprintf
(
cmd
,
"co_convert -f -d %s %s"
,
sprintf
(
cmd
,
"co_convert -f -d %s %s"
,
"$pwrp_lis"
,
tmpfile
);
"$pwrp_lis"
,
tmpfile
);
system
(
cmd
);
system
(
cmd
);
...
@@ -547,6 +563,10 @@ void rt_report::create_report( pwr_sClass_Report *o)
...
@@ -547,6 +563,10 @@ void rt_report::create_report( pwr_sClass_Report *o)
break
;
break
;
case
pwr_eDocumentFormatEnum_Html
:
case
pwr_eDocumentFormatEnum_Html
:
// Convert to pdf
// Convert to pdf
if
(
strcmp
(
display
,
""
)
!=
0
)
sprintf
(
cmd
,
"export DISPLAY=%s;co_convert -s -d %s %s"
,
display
,
"$pwrp_lis"
,
tmpfile
);
else
sprintf
(
cmd
,
"co_convert -s -d %s %s"
,
sprintf
(
cmd
,
"co_convert -s -d %s %s"
,
"$pwrp_lis"
,
tmpfile
);
"$pwrp_lis"
,
tmpfile
);
system
(
cmd
);
system
(
cmd
);
...
@@ -554,6 +574,10 @@ void rt_report::create_report( pwr_sClass_Report *o)
...
@@ -554,6 +574,10 @@ void rt_report::create_report( pwr_sClass_Report *o)
break
;
break
;
case
pwr_eDocumentFormatEnum_Postscript
:
case
pwr_eDocumentFormatEnum_Postscript
:
// Convert to Postscript
// Convert to Postscript
if
(
strcmp
(
display
,
""
)
!=
0
)
sprintf
(
cmd
,
"export DISPLAY=%s;co_convert -n -d %s %s"
,
display
,
"$pwrp_lis"
,
tmpfile
);
else
sprintf
(
cmd
,
"co_convert -n -d %s %s"
,
sprintf
(
cmd
,
"co_convert -n -d %s %s"
,
"$pwrp_lis"
,
tmpfile
);
"$pwrp_lis"
,
tmpfile
);
system
(
cmd
);
system
(
cmd
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment