473,804 Members | 3,725 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

excel problem

1 New Member
<%@ 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="ap plication/msexcel" %>
<%
response.addHea der("Content-Disposition","i nline; filename="+ "CONTRACTSAMEND MENTHISTORYEXCE L.xls" + ";" );

%>


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

<form >
<TABLE id="tblList" width="190%" border="1" cellspacing="0" >
<TR>
<logic:equal name="transport ReportForm" property="forSa tSun" value="true">
<TD align="center" width="70%" colspan="11"><b >CONTRACT AMENDMENT HISTORY<b></TD>
</logic:equal>
<logic:notEqu al name="transport ReportForm" property="forSa tSun" 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>A mended </b></TD>
<TD align="left" width="15%"><b> Reason</b></TD>
<TD align="left" width="6%"><b>M on(&pound;)</b></TD>
<TD align="left" width="6%"><b>T ue(&pound;)</b></TD>
<TD align="left" width="6%"><b>W ed(&pound;)</b></TD>
<TD align="left" width="6%"><b>T hu(&pound;)</b></TD>
<TD align="left" width="5%"><b>F ri(&pound;)</b></TD>
<logic:equal name="transport ReportForm" property="forSa tSun" value="true">
<TD align="left" width="6%"><b>S at(&pound;)</b></TD>
<TD align="left" width="6%"><b>S un(&pound;)</b></TD>
</logic:equal>

</TR>

<logic:notEmp ty name="transport ReportForm" property="contr actAmendmentHis toryList">
<logic:equal name="transport ReportForm" property="forSa tSun" value="true">
<logic:iterat e id="tblList" name="transport ReportForm"
property="contr actAmendmentHis toryList">
<logic:notEqu al name="tblList" property="contr actNo" value="">
<%iCount++;%>
</logic:notEqual>
<TR valign=top class="odd<%=iC ount%2%>">
<TD align="left" width="10%"><be an:write name="tblList" property="contr actNo" /></TD>
<TD align="left" width="15%"><be an:write name="tblList" property="compa ny" /></TD>
<TD align="left" width="8%"><bea n:write name="tblList" property="dateA mended" /></TD>
<TD align="left" width="15%"><be an:write name="tblList" property="reaso n" /></TD>
<TD width="100"> <input type="text" style="text-align: right;" value="<bean:wr ite name="tblList" property="monCo st" /> " ></input></TD>
<TD width="6%"> <input type="text" style="text-align: right;" value="<bean:wr ite name="tblList" property="tueCo st" /> " ></input></TD>
<TD width="6%"> <input type="text" style="text-align: right;" value="<bean:wr ite name="tblList" property="wedCo st"/> " ></input></TD>
<TD width="6%"> <input type="text" style="text-align: right;" value="<bean:wr ite name="tblList" property="thuCo st"/> " ></input></TD>
<TD width="6%"> <input type="text" style="text-align: right;" value="<bean:wr ite name="tblList" property="friCo st"/> " ></input></TD>
<TD width="6%"> <input type="text" style="text-align: right;" value="<bean:wr ite name="tblList" property="satCo st"/> " ></input></TD>
<TD width="6%"> <input type="text" style="text-align: right;" value="<bean:wr ite name="tblList" property="sunCo st" /> " ></input></TD>

</TR>


</logic:iterate>
</logic:equal>
<logic:notEqu al name="transport ReportForm" property="forSa tSun" value="true">
<logic:iterat e id="tblList" name="transport ReportForm"
property="contr actAmendmentHis toryList">
<logic:notEqu al name="tblList" property="contr actNo" value="">
<%iCount++;%>
</logic:notEqual>
<TR valign=top class="odd<%=iC ount%2%>">
<TD align="left" width="10%"><be an:write name="tblList" property="contr actNo" /></TD>
<TD align="left" width="15%"><be an:write name="tblList" property="compa ny" /></TD>
<TD align="left" width="8%"><bea n:write name="tblList" property="dateA mended" /></TD>
<TD align="left" width="15%"><be an:write name="tblList" property="reaso n" /></TD>
<TD width="6%" align="right"> <input type="text" value="<bean:wr ite name="tblList" property="monCo st"/> " align="right"></input></TD>
<TD width="6%"> <input type="text" style="text-align: right;" value="<bean:wr ite name="tblList" property="tueCo st" /> " ></input></TD>
<TD width="6%"> <input type="text" style="text-align: right;" value="<bean:wr ite name="tblList" property="wedCo st"/> " ></input></TD>
<TD width="6%"> <input type="text" style="text-align: right;" value="<bean:wr ite name="tblList" property="thuCo st"/> " ></input></TD>
<TD width="6%"> <input type="text" style="text-align: right;" value="<bean:wr ite name="tblList" property="friCo st"/> " ></input></TD>

</TR>

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

</logic:notEmpty>

<logic:empty name="transport ReportForm" property="contr actAmendmentHis toryList">
<TR valign="top">
<TD align="center" colspan="10" width="5%"><b>N o 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 1373

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

Similar topics

8
3373
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 process this .txt file. Goal: I am working on a vba script to:
0
4202
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 Excel 2003, I have VBA code that creates and executes queries using the Access database, and returns the results to an Excel sheet. The first time the query is executed, results are returned to Excel in usually less than 10 seconds. However, if the...
2
5438
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 recommended by many for web applications. I create the instances of Excel, Workbook and the worksheet. And later on Release the references by “System.Runtime.InteropServices.Marshal.ReleaseComObject(Object)” and making the object as null finally....
0
1219
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 help you could provide would be much appreciated. As my title indicates, I'm devloping a C# application which will need to opne up an excel template...manipulate and save it, and then quit. The problem I'm having is that the instance of...
4
2521
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 doesnt want to terminate properly even when i set excelApp.Quit, and excelApp = nothing. has anyone else experienced a problem like this??? code below:
18
3100
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 problem: http://support.microsoft.com/default.aspx?scid=kb;en-us;317109 Below is a sample of code that I wrote based on the above article. The excel workbook, worksheets, and all of the cells are properly formatted when Excel
1
2581
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 missing from the Chart object. For instance, the following line worked fine in vbscript (csPowerSpeed is the chart): objXL.csPowerSpeed.seriescollection.newseries() However, in VS.Net, newseries is no longer avaialable as a method for series...
6
2301
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 manager. This problem did not exist in the VB2003 version. Are there a any ideas of what might be happening? All of the Excel objects are being disposed of by setting them to Nothing and the Quit method is called for Excel. I've even used...
2
5627
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 Excel.Workbook Dim xlSheet as Excel.Worksheet xlWb = xlApp.Workbooks.Add
0
9579
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
1
10319
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9144
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 projectplanning, coding, testing, and deploymentwithout human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7616
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupr who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6851
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5520
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5651
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4297
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2990
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.