'Broken' html code for EP report?

dpardomdpardom Member Posts: 74
edited 2007-01-26 in Navision e-Commerce
Hi,
Can help please?
Thats the html code throw by the EP report

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<HTML>
	<HEAD>
		<meta name="GENERATOR" Content="Microsoft Visual Studio .NET 7.1">
		<meta name="CODE_LANGUAGE" Content="C#">
		<meta name="vs_defaultClientScript" content="JavaScript">
		<meta name="vs_targetSchema" content="http://schemas.microsoft.com/intellisense/ie5">
		<link rel="stylesheet" type="text/css" href="/_layouts/1033/styles/ows.css">
		<script language="javascript">
			window.focus();
		</script>
	</HEAD>
	<body class="ms-WPBody">
		<form name="Form1" method="post" action="report.aspx?type=SHOWREPORT&pos=10000&line=0&id=MiddleColumn%24g_61eb3104_7683_4f11_b79d_cab5793b8e53&key=GetListDataCache" id="Form1">
<div>
<input type="hidden" name="__VIEWSTATE" id="__VIEWSTATE" value="/wEPDwUKMjA1NDU5MDA2NGQYAQUeX19Db250cm9sc1JlcXVpcmVQb3N0QmFja0tleV9fFgEFBnJlcG9ydHTUwjsMnMV1p9rq4bYq6G79A731" />
</div>

Informe de tareas 2 - Page 1<script language="JavaScript">
 document.title="Informe de tareas 2 - Page 1";
</script>

			<span id="report"><table id="report_CT" border="0">
	<tr id="report_RR">
		<td>
<TABLE WIDTH="100%" BORDER=0 CELLSPACING=0 CELLPADDING=0>
<TR><TD>
<TABLE WIDTH="100%" BORDER=0 CELLPADDING=0>
<TR>
<TD WIDTH="2%"></TD>
<TD WIDTH="13%" VAlign=Middle><FONT SIZE=1><BR><FONT SIZE=1 FACE="Helvetica">Insertar aquí inutil imagen bonita<BR></FONT>&nbsp</FONT></TD>
<TD WIDTH="71%"></TD>
<TD WIDTH="5%"></TD>
<TD WIDTH="8%"></TD>
<TD WIDTH="1%"></TD>
</TR>
<TR>
<TD></TD>
<TD VAlign=Middle>
<TABLE WIDTH="100%" BORDER=0 CELLSPACING=0 CELLPADDING=0>
<TR>
<TD WIDTH="87%" VAlign=Middle><B><U><FONT SIZE=1 FACE="Helvetica">Informe servicio </FONT></U></B></TD>
<TD WIDTH="7%"></TD>
</TR>
</TABLE><FONT SIZE=1>&nbsp</FONT></TD>
<TD></TD>
<TD VAlign=Middle><FONT SIZE=1><B><FONT SIZE=1 FACE="Helvetica">Fecha:<BR></FONT></B>&nbsp</FONT></TD>
<TD Align=Right VAlign=Middle><FONT SIZE=1><FONT SIZE=1 FACE="Helvetica">25/01/07<BR></FONT>&nbsp</FONT></TD>
<TD></TD>
</TR>
</TABLE>
<TABLE WIDTH="100%" BORDER=0 CELLPADDING=0>
<TR>
<TD WIDTH="4%"></TD>
<TD WIDTH="8%" VAlign=Middle><FONT SIZE=1><B><FONT SIZE=1 FACE="Helvetica">Nº Tarea<BR></FONT></B>&nbsp</FONT></TD>
<TD WIDTH="8%" VAlign=Middle><FONT SIZE=1><FONT SIZE=1 FACE="Helvetica">06-0001<BR></FONT>&nbsp</FONT></TD>
<TD WIDTH="30%"></TD>
<TD WIDTH="8%" VAlign=Middle><FONT SIZE=1><B><FONT SIZE=1 FACE="Helvetica">Asunto<BR></FONT></B>&nbsp</FONT></TD>
<TD WIDTH="41%" VAlign=Middle><FONT SIZE=1><FONT SIZE=1 FACE="Helvetica">Piiiiiiiiiii<BR></FONT>&nbsp</FONT></TD>
<TD WIDTH="1%"></TD>
</TR>
</TABLE>
<TABLE WIDTH="100%" BORDER=0 CELLPADDING=0>
<TR>
<TD WIDTH="4%"></TD>
<TD WIDTH="15%" VAlign=Middle><B><FONT SIZE=1 FACE="Helvetica">IDENTIFICACIÓN<BR></FONT></B></TD>
<TD WIDTH="30%"></TD>
<TD WIDTH="1%"></TD>
<TD WIDTH="15%"></TD>
<TD WIDTH="30%"></TD>
<TD WIDTH="5%"></TD>
</TR>
<TR>
<TD></TD>
<TD VAlign=Middle><B><FONT SIZE=1 FACE="Helvetica">Empresa<BR></FONT></B></TD>
<TD VAlign=Middle><FONT SIZE=1 FACE="Helvetica">Piiiiiiiii<BR></FONT></TD>
<TD></TD>
<TD VAlign=Middle><B><FONT SIZE=1 FACE="Helvetica">Técnico<BR></FONT></B></TD>
<TD VAlign=Middle><FONT SIZE=1 FACE="Helvetica">Piiiiiiiiii<BR></FONT></TD>
<TD></TD>
</TR>
<TR>
<TD></TD>
<TD VAlign=Middle><B><FONT SIZE=1 FACE="Helvetica">Contacto<BR></FONT></B></TD>
<TD VAlign=Middle><FONT SIZE=1 FACE="Helvetica">Piiiiiiii<BR></FONT></TD>
<TD></TD>
<TD VAlign=Middle><B><FONT SIZE=1 FACE="Helvetica">Departamento<BR></FONT></B></TD>
<TD VAlign=Middle><FONT SIZE=1 FACE="Helvetica">03-SOLNEG<BR></FONT></TD>
<TD></TD>
</TR>
<TR>
<TD></TD>
<TD VAlign=Middle><B><FONT SIZE=1 FACE="Helvetica">Proyecto<BR></FONT></B></TD>
<TD VAlign=Middle><FONT SIZE=1 FACE="Helvetica">05-00001<BR></FONT></TD>
<TD></TD>
<TD></TD>
<TD></TD>
<TD></TD>
</TR>
<TR>
<TD></TD>
<TD VAlign=Middle><FONT SIZE=1><B><FONT SIZE=1 FACE="Helvetica">C.I.F.<BR></FONT></B>&nbsp</FONT></TD>
<TD VAlign=Middle><FONT SIZE=1><FONT SIZE=1 FACE="Helvetica">Piiiiii<BR></FONT>&nbsp</FONT></TD>
<TD></TD>
<TD></TD>
<TD></TD>
<TD></TD>
</TR>
<TR>
<TD></TD>
<TD VAlign=Middle><B><FONT SIZE=1 FACE="Helvetica">AVISO CLIENTE<BR></FONT></B></TD>
<TD></TD>
<TD></TD>
<TD></TD>
<TD></TD>
<TD></TD>
</TR>
</TABLE>
<TABLE WIDTH="100%" BORDER=0 CELLPADDING=0>
<TR>
<TD WIDTH="6%"></TD>
<TD WIDTH="94%" VAlign=Top><FONT SIZE=1>&nbsp<BR></FONT></TD>
</TR>
</TABLE>
<TABLE WIDTH="100%" BORDER=0 CELLPADDING=0>
<TR>
<TD WIDTH="4%"></TD>
<TD WIDTH="15%" VAlign=Middle><B><FONT SIZE=1 FACE="Helvetica">SOLUCIÓN APORTADA<BR></FONT></B></TD>
<TD WIDTH="81%"></TD>
</TR>
</TABLE>
<TABLE WIDTH="100%" BORDER=0 CELLPADDING=0>
<TR>
<TD WIDTH="6%"></TD>
<TD WIDTH="94%" VAlign=Top><FONT SIZE=1><FONT SIZE=1>&nbsp<BR></FONT>&nbsp</FONT></TD>
</TR>
</TABLE>
<TABLE WIDTH="100%" BORDER=0 CELLPADDING=0>
<TR>
<TD WIDTH="2%"></TD>
<TD WIDTH="6%" VAlign=Middle>
<TABLE WIDTH="100%" BORDER=0 CELLSPACING=0 CELLPADDING=0>
<TR>
<TD WIDTH="77%" VAlign=Middle><B><FONT SIZE=1 FACE="Helvetica">Fecha </FONT></B></TD>
<TD WIDTH="15%"></TD>
</TR>
</TABLE></TD>
<TD WIDTH="56%" VAlign=Middle><B><FONT SIZE=1 FACE="Helvetica">Descripción<BR></FONT></B></TD>
<TD WIDTH="1%"></TD>
<TD WIDTH="11%" VAlign=Middle><B><FONT SIZE=1 FACE="Helvetica">Técnico<BR></FONT></B></TD>
<TD WIDTH="1%"></TD>
<TD WIDTH="6%" VAlign=Middle><B><FONT SIZE=1 FACE="Helvetica">Código<BR></FONT></B></TD>
<TD WIDTH="1%"></TD>
<TD WIDTH="7%" VAlign=Middle><B><FONT SIZE=1 FACE="Helvetica">Cantidad<BR></FONT></B></TD>
<TD WIDTH="1%"></TD>
<TD WIDTH="8%" VAlign=Middle><B><FONT SIZE=1 FACE="Helvetica">Facturable<BR></FONT></B></TD>
</TR>
<TR>
<TD></TD>
<TD VAlign=Middle><FONT SIZE=1 FACE="Helvetica">31/12/05<BR></FONT></TD>
<TD VAlign=Middle><FONT SIZE=1 FACE="Helvetica">Varios<BR></FONT></TD>
<TD></TD>
<TD VAlign=Middle><FONT SIZE=1 FACE="Helvetica">Piiiiii<BR></FONT></TD>
<TD></TD>
<TD VAlign=Middle><FONT SIZE=1>&nbsp<BR></FONT></TD>
<TD></TD>
<TD Align=Center VAlign=Middle><FONT SIZE=1 FACE="Helvetica">0<BR></FONT></TD>
<TD></TD>
<TD Align=Center VAlign=Middle>
<TABLE WIDTH="100%" BORDER=0 CELLSPACING=0 CELLPADDING=0>
<TR>
<TD WIDTH="12%"></TD>
<TD WIDTH="74%" Align=Center VAlign=Middle><FONT SIZE=1 FACE="Helvetica">No </FONT></TD>
<TD WIDTH="12%"></TD>
</TR>
</TABLE></TD>
</TR>
<TR>
<TD></TD>
<TD VAlign=Middle><FONT SIZE=1 FACE="Helvetica">31/12/05<BR></FONT></TD>
<TD VAlign=Middle><FONT SIZE=1 FACE="Helvetica">Varios<BR></FONT></TD>
<TD></TD>
<TD VAlign=Middle><FONT SIZE=1 FACE="Helvetica">Piiiiii<BR></FONT></TD>
<TD></TD>
<TD VAlign=Middle><FONT SIZE=1>&nbsp<BR></FONT></TD>
<TD></TD>
<TD Align=Center VAlign=Middle><FONT SIZE=1 FACE="Helvetica">0<BR></FONT></TD>
<TD></TD>
<TD Align=Center VAlign=Middle>
<TABLE WIDTH="100%" BORDER=0 CELLSPACING=0 CELLPADDING=0>
<TR>
<TD WIDTH="12%"></TD>
<TD WIDTH="74%" Align=Center VAlign=Middle><FONT SIZE=1 FACE="Helvetica">No </FONT></TD>
<TD WIDTH="12%"></TD>
</TR>
</TABLE></TD>
</TR>
</TABLE>
<BR><HR>
</TD></TR>
</TABLE>
</td>
	</tr><tr id="report_NR">
		<td></td>
	</tr>
</table></span>
			<span id="label1"></span>
		</form>
	</body>
</HTML>


I think the line:

<span id="report"><table id="report_CT" border="0">

should be:

<span id="report"><table id="report_CT" border="0" width="100%">

Else the report is using only 1/4 of the printable page.

Any way to modify the way this html code is written? or any other solution? (to save the report and modify the html code each time is not considered an option)

thanks

Answers

  • kinekine Member Posts: 12,562
    Check the paper setting on default printer on server where NAS for NEP is running.
    Kamil Sacek
    MVP - Dynamics NAV
    My BLOG
    NAVERTICA a.s.
  • dpardomdpardom Member Posts: 74
    thx for reply
    checked it (it was A4), also added another printer, restarted the nas service and nothing... the report remais the same :(
  • kinekine Member Posts: 12,562
    Which version of NAV you are using?
    Kamil Sacek
    MVP - Dynamics NAV
    My BLOG
    NAVERTICA a.s.
  • dpardomdpardom Member Posts: 74
    4.0 SP1

    I were looking for the xml generator code, and it seems to be in an external library, if I'm wrong tell me where to find it please.
  • dpardomdpardom Member Posts: 74
    No problem anymore, just changed the style sheet :oops: , the problem now is that all tables of all reports will be 100% width.. well, not a problem atm.
    thanks.
  • kinekine Member Posts: 12,562
    It's good that you solved the problem. Can you add the [SOLVED] prefix into zour first post of this thread? Thanks. =D>
    Kamil Sacek
    MVP - Dynamics NAV
    My BLOG
    NAVERTICA a.s.
  • dpardomdpardom Member Posts: 74
    I'll explain some more the ''solution''

    To change the css edit the file (in server):

    C:\Inetpub\wwwWhatEver\UserControls\Report.aspx

    (change wwwWhatEver for your path)
    <%@ Register TagPrefix="cc" Namespace="Microsoft.Navision.EmployeePortal.CustomControlLibrary" Assembly="Microsoft.Navision.EmployeePortal.UserControlLibrary" %>
    <%@ Page language="c#" Codebehind="Report.aspx.cs" AutoEventWireup="false" Inherits="Microsoft.Navision.EmployeePortal.UserControlLibrary.ReportPage" %>
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
    <HTML>
    	<HEAD>
    		<meta name="GENERATOR" Content="Microsoft Visual Studio .NET 7.1">
    		<meta name="CODE_LANGUAGE" Content="C#">
    		<meta name="vs_defaultClientScript" content="JavaScript">
    		<meta name="vs_targetSchema" content="http://schemas.microsoft.com/intellisense/ie5">
    		<link rel="stylesheet" type="text/css" href="http://www.your_nep_domain.com/usercontrols/ssheet1.css">
    		<script language="javascript">
    			window.focus();
    		</script>
    	</HEAD>
    	<body class="ms-WPBody">
    		<form id="Form1" method="post" runat="server">
    			<cc:Report runat="server" id="report" />
    			<asp:Label id="label1" runat="server" />
    		</form>
    	</body>
    </HTML>
    

    I changed:
    <link rel="stylesheet" type="text/css" href="/_layouts/1033/styles/ows.css">
    by
    <link rel="stylesheet" type="text/css" href="http://www.your_nep_domain.com/usercontrols/ssheet1.css"&gt;

    For people not used to html development, that's the contents of ssheet1.css, which must be created in C:\Inetpub\wwwWhatEver\UserControls\ (in the server)
    table {
    	width:100%;
    }
    

    Since Report.aspx seems to be used to create all the EP reports the style sheet will affect all reports, that's all tables of all reports will be 100% width, still don't know if that can be a problem.

    greets.
Sign In or Register to comment.