473,396 Members | 1,875 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

excel problem

1
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>

<html:html>
<HEAD>

<%@ page contentType="application/msexcel" %>
<%
response.addHeader("Content-Disposition","inline; filename="+ "CONTRACTSAMENDMENTHISTORYEXCEL.xls" + ";" );

%>


<BODY topmargin="0" leftmargin="0">

<form >
<TABLE id="tblList" width="190%" border="1" cellspacing="0" >
<TR>
<logic:equal name="transportReportForm" property="forSatSun" value="true">
<TD align="center" width="70%" colspan="11"><b>CONTRACT AMENDMENT HISTORY<b></TD>
</logic:equal>
<logic:notEqual name="transportReportForm" property="forSatSun" value="true">
<TD align="center" width="70%" colspan="9"><b>CONTRACT AMENDMENT HISTORY<b></TD>
</logic:notEqual>

</TR>
<%int iCount = 0;%>
<tr>
<td colspan="2">


<TR class="hdrftr" valign="top">
<TD align="left" width="10%"><b>Contract No.</b></TD>
<TD align="left" width="15%"><b>Company</b></TD>
<TD align="left" width="8%"><b>Amended </b></TD>
<TD align="left" width="15%"><b>Reason</b></TD>
<TD align="left" width="6%"><b>Mon(&pound;)</b></TD>
<TD align="left" width="6%"><b>Tue(&pound;)</b></TD>
<TD align="left" width="6%"><b>Wed(&pound;)</b></TD>
<TD align="left" width="6%"><b>Thu(&pound;)</b></TD>
<TD align="left" width="5%"><b>Fri(&pound;)</b></TD>
<logic:equal name="transportReportForm" property="forSatSun" value="true">
<TD align="left" width="6%"><b>Sat(&pound;)</b></TD>
<TD align="left" width="6%"><b>Sun(&pound;)</b></TD>
</logic:equal>

</TR>

<logic:notEmpty name="transportReportForm" property="contractAmendmentHistoryList">
<logic:equal name="transportReportForm" property="forSatSun" value="true">
<logic:iterate id="tblList" name="transportReportForm"
property="contractAmendmentHistoryList">
<logic:notEqual name="tblList" property="contractNo" value="">
<%iCount++;%>
</logic:notEqual>
<TR valign=top class="odd<%=iCount%2%>">
<TD align="left" width="10%"><bean:write name="tblList" property="contractNo" /></TD>
<TD align="left" width="15%"><bean:write name="tblList" property="company" /></TD>
<TD align="left" width="8%"><bean:write name="tblList" property="dateAmended" /></TD>
<TD align="left" width="15%"><bean:write name="tblList" property="reason" /></TD>
<TD width="100"> <input type="text" style="text-align: right;" value="<bean:write name="tblList" property="monCost" /> " ></input></TD>
<TD width="6%"> <input type="text" style="text-align: right;" value="<bean:write name="tblList" property="tueCost" /> " ></input></TD>
<TD width="6%"> <input type="text" style="text-align: right;" value="<bean:write name="tblList" property="wedCost"/> " ></input></TD>
<TD width="6%"> <input type="text" style="text-align: right;" value="<bean:write name="tblList" property="thuCost"/> " ></input></TD>
<TD width="6%"> <input type="text" style="text-align: right;" value="<bean:write name="tblList" property="friCost"/> " ></input></TD>
<TD width="6%"> <input type="text" style="text-align: right;" value="<bean:write name="tblList" property="satCost"/> " ></input></TD>
<TD width="6%"> <input type="text" style="text-align: right;" value="<bean:write name="tblList" property="sunCost" /> " ></input></TD>

</TR>


</logic:iterate>
</logic:equal>
<logic:notEqual name="transportReportForm" property="forSatSun" value="true">
<logic:iterate id="tblList" name="transportReportForm"
property="contractAmendmentHistoryList">
<logic:notEqual name="tblList" property="contractNo" value="">
<%iCount++;%>
</logic:notEqual>
<TR valign=top class="odd<%=iCount%2%>">
<TD align="left" width="10%"><bean:write name="tblList" property="contractNo" /></TD>
<TD align="left" width="15%"><bean:write name="tblList" property="company" /></TD>
<TD align="left" width="8%"><bean:write name="tblList" property="dateAmended" /></TD>
<TD align="left" width="15%"><bean:write name="tblList" property="reason" /></TD>
<TD width="6%" align="right"> <input type="text" value="<bean:write name="tblList" property="monCost"/> " align="right"></input></TD>
<TD width="6%"> <input type="text" style="text-align: right;" value="<bean:write name="tblList" property="tueCost" /> " ></input></TD>
<TD width="6%"> <input type="text" style="text-align: right;" value="<bean:write name="tblList" property="wedCost"/> " ></input></TD>
<TD width="6%"> <input type="text" style="text-align: right;" value="<bean:write name="tblList" property="thuCost"/> " ></input></TD>
<TD width="6%"> <input type="text" style="text-align: right;" value="<bean:write name="tblList" property="friCost"/> " ></input></TD>

</TR>

</logic:iterate>
</logic:notEqual>

</logic:notEmpty>

<logic:empty name="transportReportForm" property="contractAmendmentHistoryList">
<TR valign="top">
<TD align="center" colspan="10" width="5%"><b>No Records to Display</b></TD>
</TR>
</logic:empty>


</td>
</tr>
</TABLE>
</td>
</tr>

</td>
</TR>

</table>
</form>
</div>

</BODY>
</html:html>



when i opened this page in excel the data in input tag cant not be assigned to right
Aug 22 '07 #1
0 1354

Sign in to post your reply or Sign up for a free account.

Similar topics

8
by: mytfein | last post by:
Hi Everyone, Background: Another department intends to ftp a .txt file from the mainframe, for me to process. The objective is to write a vb script that would be scheduled to run daily to...
0
by: Mike Knight | last post by:
(I've also posted this problem on microsoft.public.excel.programming) I have a MS Access 2003 Database named "AS400 Fields.mdb". This database contains links to tables on an AS400. In MS...
2
by: Praveen K | last post by:
I have a problem in communicating between the C# and the Excel Interop objects. The problem is something as described below. I use Microsoft Office-XP PIA dll’s as these dll’s were been...
0
by: rhett | last post by:
howdy folks, first off, I'd like to not that I have browsed the forums and thanks to what I've found there I'm 80% through this problem, but the last part seems to be a profound obstacle and any...
4
by: msnnews.msn.com | last post by:
hi there, i've got a form that populates a datagrid, and a button that calls a function to export to an excel file. All is well with the export, no errors are returned, but the Excel instance...
18
by: lgbjr | last post by:
Hi All, I have a VB.NET app that, among other things, writes data to Excel. I am having trouble getting the Excel process to terminate after I quit Excel. I found an article related to this...
1
by: Randall Arnold | last post by:
I'm converting a vbscript program to vb.net. Witht he exception of .net idiosyncrasies, most of it is working well with the same code. My only problem is that some properties and methods are...
6
by: Darrell Wesley | last post by:
A VB2003 application upgraded to VB2005 that builds an Excel spreadsheet. Everything appears to work correctly except that the Excel object does not go away it is still in the Process list in task...
2
by: James | last post by:
I am doing some Excel 2000 automaton using Vb 2005. I am referencing the Excel 9.0 COM Object Library. The following code was working fine: Dim xlApp as new Excel.Application Dim xlWb as...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.