473,378 Members | 1,382 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,378 software developers and data experts.

Problem saving a file with .TXT extension.

9
Hi, I have a asp page where I have a Export to Excel button. When I click the button, I get the option to open or save or cancel.
When I click on save option I get the save dialogue box and save it.

I don't have any problem if I save it with .xls extension, but the problem comes when I save it with .TXT extension. When I open the file saved with .txt extension I am able to see some html code as seen below


<html xmlns:o="urn:schemas-microsoft-com:office:office"
xmlns:x="urn:schemas-microsoft-com:office:excel"
xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv=Content-Type content="text/html; charset=windows-1252">
<meta name=ProgId content=Excel.Sheet>
<meta name=Generator content="Microsoft Excel 11">

</head>

<body>
<table x:str border=1 cellpadding=0 cellspacing=0 width=2020 style='border-collapse:
collapse;table-layout:fixed;width:1518pt'>

<col width=64 span=3 style='width:48pt'>
<col class=xl24 width=64 style='width:48pt'>
<col width=64 span=2 style='width:48pt'>



<tr height=17 style='height:12.75pt'> <td colspan=3 width=192 style='mso-ignore:colspan;width:144pt'> Created by ProEdge Visual BOM - 12/17/2007 3:48:09 PM</td><td></td> <td> Applied Materials Confidential </td></tr>

<tr height=17 style='height:12.75pt'><td> PART </td> <td> LEVEL </td>

<td> DESCRIPTION </td>

<td> REV </td>


<td> ITEM NUMBER </td>


<td>QUANTITY</td>

<td> UOM</td>

<td> ITEM TYPE</td>

<td>ITEM STATUS</td>

<td>PLANNER </td>

<td>BUYER</td>

<td>MAKE/BUY </td>

<td>ECO</td>

<td>DISABLE DATE</td>

<td>EFFECTIVITY DATE</td>

<td>LEAD TIME</td>

<td>OP SEQ</td>

<td>REMARKS</td>

<td>SUPPLY TYPE</td>

<td>SUB INVENTORY</td>

<td>SUPPLIER</td>

<td>MIN QUANTITY</td>

<td>MAX QUANTITY</td>

<td>MRP PLANNING CODE</td>

<td>CUM LEAD TIME</td>

<td>REFERENCE DESIGNATOR</td> <td>REFERENCE DESIGNATOR COMMENT </td>

<td>PLANNING FACTOR</td>

<td>DEPARTMENT</td>

<td>CRITICAL PART</td><tr>

only part of data is pasted here..

But I am supposed to see the only the data not the html code, please see the sample data that I am supposed to see,



PART LEVEL DESCRIPTION REV ITEM NUMBER QUANTITY UOM ITEM TYPE ITEM STATUS PLANNER BUYER MAKE/BUY ECO DISABLE DATE EFFECTIVITY DATE LEAD TIME OP SEQ REMARKS SUPPLY TYPE SUB INVENTORY SUPPLIER MIN QUANTITY MAX QUANTITY MRP PLANNING CODE CUM LEAD TIME REFERENCE DESIGNATOR REF DESIGNATOR COMMENT PLANNING FACTOR DEPARTMENT CRITICAL PART SPARABLE FLAG
20764-RSC-CONT 0 CONTROLLER 005 0 1 EA Configured Production 0 N/A Make NONE 0 0 NONE NONE NONE 0 0 7 0 0 N/A N N
0242-34298 1 "KIT, CENTURA CONTROLLER I/O, DSM" 001 10 1 EA Kit \ Subassembly Production 0 N/A Make NONE 11-Feb-07 5 1

The code for this is writen in asp
Can anyone help me what can be done to overcome this issue..
Dec 21 '07 #1
1 1547
leninv
9
The problem exists with notepad. Notepad doesnot support html code, i mean to say as the code has tags like <table>,etc. which are not supported, so this problem is faced. Hope this problem is understood.

Hi, I have a asp page where I have a Export to Excel button. When I click the button, I get the option to open or save or cancel.
When I click on save option I get the save dialogue box and save it.

I don't have any problem if I save it with .xls extension, but the problem comes when I save it with .TXT extension. When I open the file saved with .txt extension I am able to see some html code as seen below





only part of data is pasted here..

But I am supposed to see the only the data not the html code, please see the sample data that I am supposed to see,






The code for this is writen in asp
Can anyone help me what can be done to overcome this issue..
Dec 27 '07 #2

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

Similar topics

0
by: Hal Vaughan | last post by:
I am using OpenOffice files in my app. They're stored in .zip format, so the zip format is much more important, in this case, than that they're OOo files (other than that the extension is .sxw and...
26
by: HarryO | last post by:
I created an external stylesheet file 'styles.css' and an html file that includes the line: <LINK REL="stylesheet" TYPE="text/css" HREF="styles.css" Both the .css file and the html file reside...
7
by: Dobedani | last post by:
Dear All, I am developing / maintaining a web application which generates GIF images on the fly. When I send the image, I make sure a header is sent first with MIME-type image/gif. My HTML-code...
5
by: marcinka | last post by:
Hello This is the program, that I wrote. #include <stdio.h> #define MAX 4096 typedef unsigned short int int16; int16 o; unsigned char i;
3
by: Kidus Yared | last post by:
I am having a problem displaying Unicode characters on my Forms labels and buttons. After coding Button1.Text = unicode; where the unicode is a Unicode character or string (‘\u1234’ or...
0
by: Eugene | last post by:
Hi, I have a template in html and want to use web matrix to create a form. I am able to open the file and use the web controls after changing the file extension to aspx. But after saving the...
1
by: Viktor Popov | last post by:
Hi, I'm trying to upload a file and I do that with this code, but there is a thing which doesn't work. I can't understand how to check if it isn't written the path to the file(the text field of...
1
by: Sinan Alkan | last post by:
Hi All, I have a method to resize any image file to the specific dimensions and save this new image to a path. I found it on a web page(By Joel Neubeck) and i changed it for my project. The...
1
by: shahidrasul | last post by:
i want to download a file which user select from gridview, downloading is completing without problem but after download i want to refresh my page because i do some changes in db . but when...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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...

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.