OPEN MIND Technologies AG
We push machining to the limit!
2827
Follower:innenScreenshot dynamisch in Report
13.02.2018, 13:45 Uhr
Guten Tag,
nochmal eine Frage zum Report Designer, ich versuche das durch HyperView automatische generierte Bild in meinen Report einzufügen, aber der Screenshot wird nicht angezeigt. Ich habe die Befehle aus einer Vorlage nachgebaut, ohne Erfolg, selbst das kopieren der Zeilen aus der Vorlage in meinen Report brachte keinen Erfolg.
Habt Ihr vielleicht noch ein paar Tipps für mich?
Unbenannt.png ( 12.41KB ) Anzahl der Downloads: 88
Mit freundlichen Grüßen
Siggy
nochmal eine Frage zum Report Designer, ich versuche das durch HyperView automatische generierte Bild in meinen Report einzufügen, aber der Screenshot wird nicht angezeigt. Ich habe die Befehle aus einer Vorlage nachgebaut, ohne Erfolg, selbst das kopieren der Zeilen aus der Vorlage in meinen Report brachte keinen Erfolg.
Habt Ihr vielleicht noch ein paar Tipps für mich?
Unbenannt.png ( 12.41KB ) Anzahl der Downloads: 88
Mit freundlichen Grüßen
Siggy
CODE
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output doctype-public="-//W3C//DTD XHTML 1.0 Transitional//EN" encoding="UTF-8" method="xml" />
<xsl:param name="REPORT">joblist</xsl:param>
<xsl:param name="LOCALE">de</xsl:param>
<xsl:param name="FORMAT">html</xsl:param>
<xsl:param name="CAPTURE">joblist,job</xsl:param>
<xsl:template match="/">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
<title>Joblist Report</title>
<style type="text/css">
body {font-family: Arial;}
</style>
</head>
<body>
<xsl:apply-templates />
</body>
</html>
</xsl:template>
<xsl:template match="JobList">
<div>
<table width="100%" border="1px">
<thead>
<tr>
<td style="text-align:center;width:70%;">
<img width="800" height="650">
<xsl:attribute name="src">
<xsl:value-of select="@model.screen" />
</xsl:attribute>
</img>
</td>
<td>
<p>Jobliste:<xsl:value-of select="Job[position()=1]/@cfg.JOBLISTNAME" /></p>
<p>Bezeichnung:<xsl:value-of select="Job[position()=1]/@cfg.A1" /></p>
<p>Notiz:<xsl:value-of select="Job[position()=1]/@cfg.A2" /></p>
<p>Aufmaß:<xsl:value-of select="Job[position()=1]/@cfg.A3" /></p>
<p>Material:<xsl:value-of select="Job[position()=1]/@cfg.MATERIAL" /></p>
<p style="">Maschine:<xsl:value-of select="@mach.machineName" /></p>
</td>
<td>
<img src="V:\hyperMILL\JobReport\Logo\Logo.jpg" width="250" height="94" />
<p style="border-top:1px solid Black;">Programmierer:<xsl:value-of select="@system.userName" />/<xsl:value-of select="@day" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" />.<xsl:value-of select="@month" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" />.<xsl:value-of select="@year" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" /></p>
</td>
</tr>
</thead>
<tbody>
</tbody>
</table>
<table width="100%" style="border-left:1px solid Black;border-top:1px solid Black;border-right:1px solid Black;border-bottom:1px solid Black;">
<thead>
<tr>
<td style="border-right:1px solid Black;margin-bottom:1px solid Black;font-weight:bold;">Jobname</td>
<td style="border-right:1px solid Black;font-weight:bold;">Werkzeugname</td>
<td style="border-right:1px solid Black;font-weight:bold;">Halter</td>
<td style="border-right:1px solid Black;font-weight:bold;">Ø</td>
<td style="border-right:1px solid Black;font-weight:bold;">R</td>
<td style="border-right:1px solid Black;font-weight:bold;">AL</td>
<td style="border-right:1px solid Black;font-weight:bold;">S</td>
<td style="border-right:1px solid Black;font-weight:bold;">F</td>
<td style="border-right:1px solid Black;font-weight:bold;">F Z</td>
<td style="border-right:1px solid Black;font-weight:bold;">ae</td>
<td style="border-right:1px solid Black;font-weight:bold;">ap</td>
<td style="border-right:1px solid Black;font-weight:bold;">Aufmaß</td>
<td style="border-right:1px solid Black;font-weight:bold;">Zmin</td>
<td style="border-right:1px solid Black;font-weight:bold;">Laufzeit</td>
<td style="font-weight:bold;">NC-Name</td>
</tr>
</thead>
<tbody>
<xsl:for-each select="Job">
<tr>
<td style="border-right:1px solid Black;border-top:1px solid Black;">
<xsl:value-of select="@cfg.JOBNAME" />
</td>
<td style="border-top:1px solid Black;border-right:1px solid Black;">
<xsl:value-of select="@cfg.WKZKOMMENTAR" />
</td>
<td style="border-right:1px solid Black;border-top:1px solid Black;">
<xsl:value-of select="@T.holder.comment" />
</td>
<td style="border-right:1px solid Black;border-top:1px solid Black;">
<xsl:value-of select="@T.diameter" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" />
</td>
<td style="border-right:1px solid Black;border-top:1px solid Black;">
<xsl:value-of select="@T.cornerRadius" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" />
</td>
<td style="border-right:1px solid Black;border-top:1px solid Black;">
<xsl:value-of select="@cfg.TOTAL_TOOL_LENGTH" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" />
</td>
<td style="border-right:1px solid Black;border-top:1px solid Black;">
<xsl:value-of select="format-number(@T.S,'#0')" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" />
</td>
<td style="border-right:1px solid Black;border-top:1px solid Black;">
<xsl:value-of select="@T.FX" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" />
</td>
<td style="border-right:1px solid Black;border-top:1px solid Black;">
<xsl:value-of select="@T.FZ" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" />
</td>
<td style="border-right:1px solid Black;border-top:1px solid Black;">
<xsl:value-of select="@cfg.HORIZUSTEL" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" />
</td>
<td style="border-right:1px solid Black;border-top:1px solid Black;">
<xsl:value-of select="@cfg.VERTZUSTEL" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" />
</td>
<td style="border-right:1px solid Black;border-top:1px solid Black;">
<xsl:value-of select="@cfg.AUFMASS" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" />
</td>
<td style="border-right:1px solid Black;border-top:1px solid Black;">
<xsl:value-of select="format-number(@zmin,'#.00')" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" />
</td>
<td style="border-right:1px solid Black;border-top:1px solid Black;">
<xsl:value-of select="concat(format-number( (floor(@sta.time div 3600)),'#0'),':', format-number(((floor(@sta.time div 60)) mod 60),'00'),':', format-number((@sta.time mod 60),'00'))" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" />
</td>
<td style="border-top:1px solid Black;">
<xsl:value-of select="@nc.file.name" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" />
</td>
</tr>
</xsl:for-each>
</tbody>
</table>
</div>
</xsl:template>
</xsl:stylesheet>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output doctype-public="-//W3C//DTD XHTML 1.0 Transitional//EN" encoding="UTF-8" method="xml" />
<xsl:param name="REPORT">joblist</xsl:param>
<xsl:param name="LOCALE">de</xsl:param>
<xsl:param name="FORMAT">html</xsl:param>
<xsl:param name="CAPTURE">joblist,job</xsl:param>
<xsl:template match="/">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
<title>Joblist Report</title>
<style type="text/css">
body {font-family: Arial;}
</style>
</head>
<body>
<xsl:apply-templates />
</body>
</html>
</xsl:template>
<xsl:template match="JobList">
<div>
<table width="100%" border="1px">
<thead>
<tr>
<td style="text-align:center;width:70%;">
<img width="800" height="650">
<xsl:attribute name="src">
<xsl:value-of select="@model.screen" />
</xsl:attribute>
</img>
</td>
<td>
<p>Jobliste:<xsl:value-of select="Job[position()=1]/@cfg.JOBLISTNAME" /></p>
<p>Bezeichnung:<xsl:value-of select="Job[position()=1]/@cfg.A1" /></p>
<p>Notiz:<xsl:value-of select="Job[position()=1]/@cfg.A2" /></p>
<p>Aufmaß:<xsl:value-of select="Job[position()=1]/@cfg.A3" /></p>
<p>Material:<xsl:value-of select="Job[position()=1]/@cfg.MATERIAL" /></p>
<p style="">Maschine:<xsl:value-of select="@mach.machineName" /></p>
</td>
<td>
<img src="V:\hyperMILL\JobReport\Logo\Logo.jpg" width="250" height="94" />
<p style="border-top:1px solid Black;">Programmierer:<xsl:value-of select="@system.userName" />/<xsl:value-of select="@day" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" />.<xsl:value-of select="@month" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" />.<xsl:value-of select="@year" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" /></p>
</td>
</tr>
</thead>
<tbody>
</tbody>
</table>
<table width="100%" style="border-left:1px solid Black;border-top:1px solid Black;border-right:1px solid Black;border-bottom:1px solid Black;">
<thead>
<tr>
<td style="border-right:1px solid Black;margin-bottom:1px solid Black;font-weight:bold;">Jobname</td>
<td style="border-right:1px solid Black;font-weight:bold;">Werkzeugname</td>
<td style="border-right:1px solid Black;font-weight:bold;">Halter</td>
<td style="border-right:1px solid Black;font-weight:bold;">Ø</td>
<td style="border-right:1px solid Black;font-weight:bold;">R</td>
<td style="border-right:1px solid Black;font-weight:bold;">AL</td>
<td style="border-right:1px solid Black;font-weight:bold;">S</td>
<td style="border-right:1px solid Black;font-weight:bold;">F</td>
<td style="border-right:1px solid Black;font-weight:bold;">F Z</td>
<td style="border-right:1px solid Black;font-weight:bold;">ae</td>
<td style="border-right:1px solid Black;font-weight:bold;">ap</td>
<td style="border-right:1px solid Black;font-weight:bold;">Aufmaß</td>
<td style="border-right:1px solid Black;font-weight:bold;">Zmin</td>
<td style="border-right:1px solid Black;font-weight:bold;">Laufzeit</td>
<td style="font-weight:bold;">NC-Name</td>
</tr>
</thead>
<tbody>
<xsl:for-each select="Job">
<tr>
<td style="border-right:1px solid Black;border-top:1px solid Black;">
<xsl:value-of select="@cfg.JOBNAME" />
</td>
<td style="border-top:1px solid Black;border-right:1px solid Black;">
<xsl:value-of select="@cfg.WKZKOMMENTAR" />
</td>
<td style="border-right:1px solid Black;border-top:1px solid Black;">
<xsl:value-of select="@T.holder.comment" />
</td>
<td style="border-right:1px solid Black;border-top:1px solid Black;">
<xsl:value-of select="@T.diameter" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" />
</td>
<td style="border-right:1px solid Black;border-top:1px solid Black;">
<xsl:value-of select="@T.cornerRadius" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" />
</td>
<td style="border-right:1px solid Black;border-top:1px solid Black;">
<xsl:value-of select="@cfg.TOTAL_TOOL_LENGTH" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" />
</td>
<td style="border-right:1px solid Black;border-top:1px solid Black;">
<xsl:value-of select="format-number(@T.S,'#0')" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" />
</td>
<td style="border-right:1px solid Black;border-top:1px solid Black;">
<xsl:value-of select="@T.FX" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" />
</td>
<td style="border-right:1px solid Black;border-top:1px solid Black;">
<xsl:value-of select="@T.FZ" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" />
</td>
<td style="border-right:1px solid Black;border-top:1px solid Black;">
<xsl:value-of select="@cfg.HORIZUSTEL" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" />
</td>
<td style="border-right:1px solid Black;border-top:1px solid Black;">
<xsl:value-of select="@cfg.VERTZUSTEL" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" />
</td>
<td style="border-right:1px solid Black;border-top:1px solid Black;">
<xsl:value-of select="@cfg.AUFMASS" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" />
</td>
<td style="border-right:1px solid Black;border-top:1px solid Black;">
<xsl:value-of select="format-number(@zmin,'#.00')" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" />
</td>
<td style="border-right:1px solid Black;border-top:1px solid Black;">
<xsl:value-of select="concat(format-number( (floor(@sta.time div 3600)),'#0'),':', format-number(((floor(@sta.time div 60)) mod 60),'00'),':', format-number((@sta.time mod 60),'00'))" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" />
</td>
<td style="border-top:1px solid Black;">
<xsl:value-of select="@nc.file.name" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" />
</td>
</tr>
</xsl:for-each>
</tbody>
</table>
</div>
</xsl:template>
</xsl:stylesheet>
13.02.2018, 19:40 Uhr
Das sieht soweit richtig aus hier mal bei mir:
Wie generierst du deinen Report? direkt in hyperView oder in hyperMILL?
Der Beitrag wurde von Gramatak bearbeitet: 13.02.2018, 19:41 Uhr
CODE
<td colspan="6" style="width:30%;text-align:right;">
<img width="396" style="margin-top:130px;margin-bottom:130px;" height="237">
<xsl:attribute name="src" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:value-of select="@model.screen" />
</xsl:attribute>
</img>
</td>
<img width="396" style="margin-top:130px;margin-bottom:130px;" height="237">
<xsl:attribute name="src" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:value-of select="@model.screen" />
</xsl:attribute>
</img>
</td>
Wie generierst du deinen Report? direkt in hyperView oder in hyperMILL?
Der Beitrag wurde von Gramatak bearbeitet: 13.02.2018, 19:41 Uhr
14.02.2018, 07:44 Uhr
14.02.2018, 08:35 Uhr
Er hat recht, bei mir steht auch model mit drin. Allerdings schon immer, Mir ist das daher noch nie aufgefallen.
14.02.2018, 14:07 Uhr
Vielen Dank. Das war es tatsächlich! Die Belegschaft ist euch zu großem Dank verpflichtet!
Kann man das Bild auch erzeugen, ohne den Umweg über HyperView zu gehen?
Liebe Grüße
Siggy
Kann man das Bild auch erzeugen, ohne den Umweg über HyperView zu gehen?
Liebe Grüße
Siggy
14.02.2018, 18:36 Uhr
Nein da die screenshots direkt in hyperview gemacht werden. Deshalb nutzt mir die Funktion den report in hypermill zu erstellen auch nichts. Vieleicht wird dies ja noch geändert.
1 Besucher lesen dieses Thema (Gäste: 1)
0 Mitglieder: