Gmail Calendar Documents Reader Web more »
Recently Visited Groups | Help | Sign in
Google Groups Home
Conversion from .txt to .xls
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  18 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Devadula  
View profile  
 More options Jun 30, 7:13 am
From: Devadula <pavandevad...@gmail.com>
Date: Tue, 30 Jun 2009 04:13:30 -0700 (PDT)
Local: Tues, Jun 30 2009 7:13 am
Subject: Conversion from .txt to .xls
hai every body..i need code for window application in vb language for
the converting .txt file to .xls file..

Thanks in Advance


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
The_Fruitman  
View profile  
 More options Jun 30, 9:35 am
From: The_Fruitman <evilfruitsmas...@gmail.com>
Date: Tue, 30 Jun 2009 06:35:38 -0700 (PDT)
Local: Tues, Jun 30 2009 9:35 am
Subject: Re: Conversion from .txt to .xls
Google it!

http://www.google.com/search?hl=en&q=convert+txt+to+xls%2Bvb.net&aq=f...

On Jun 30, 5:13 am, Devadula <pavandevad...@gmail.com> wrote:


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Cerebrus  
View profile  
 More options Jun 30, 11:44 am
From: Cerebrus <zorg...@sify.com>
Date: Tue, 30 Jun 2009 08:44:05 -0700 (PDT)
Local: Tues, Jun 30 2009 11:44 am
Subject: Re: Conversion from .txt to .xls
And you're welcome in advance !

On Jun 30, 4:13 pm, Devadula <pavandevad...@gmail.com> wrote:


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Devadula  
View profile  
 More options Jul 1, 1:39 am
From: Devadula <pavandevad...@gmail.com>
Date: Tue, 30 Jun 2009 22:39:37 -0700 (PDT)
Local: Wed, Jul 1 2009 1:39 am
Subject: Re: Conversion from .txt to .xls
thanks for ur link...i require the code..i'm not able to get the
code..can u pls send the code in VB language

    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Brandon Betances  
View profile  
 More options Jul 1, 9:59 am
From: Brandon Betances <bbetan...@gmail.com>
Date: Wed, 1 Jul 2009 09:59:14 -0400
Local: Wed, Jul 1 2009 9:59 am
Subject: Re: [DotNetDevelopment] Re: Conversion from .txt to .xls

Can you please figure it out yourself or maybe try another career?


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
The_Fruitman  
View profile  
 More options Jul 1, 10:59 am
From: The_Fruitman <evilfruitsmas...@gmail.com>
Date: Wed, 1 Jul 2009 07:59:24 -0700 (PDT)
Local: Wed, Jul 1 2009 10:59 am
Subject: Re: Conversion from .txt to .xls
You need to click on one of the links that Google shows you in order
to get the code.  I found sample code for how to do this in 2 clicks
from the Google search I sent you.  If you need this much hand-holding
to develop an application you are in the wrong field.

On Jun 30, 11:39 pm, Devadula <pavandevad...@gmail.com> wrote:


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Ravi Gokulgandhi  
View profile  
 More options Jul 1, 11:03 am
From: Ravi Gokulgandhi <ravi.gokulgan...@gmail.com>
Date: Wed, 1 Jul 2009 20:33:42 +0530
Local: Wed, Jul 1 2009 11:03 am
Subject: Re: [DotNetDevelopment] Conversion from .txt to .xls

http://www.lmgtfy.com/?q=code+for+converting+txt+to+excel<http://www.lmgtfy.com/?q=code+for+coverting+txt+to+excel>


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Processor Devil  
View profile  
 More options Jul 1, 11:19 am
From: Processor Devil <processor.de...@gmail.com>
Date: Wed, 1 Jul 2009 17:19:03 +0200
Local: Wed, Jul 1 2009 11:19 am
Subject: Re: [DotNetDevelopment] Re: Conversion from .txt to .xls

well, that is quite cool. Btw do you know that .xls file is from Microsoft
Office Excel?
Question
/which version of Excel should it be?

2009/7/1 Devadula <pavandevad...@gmail.com>


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Cerebrus  
View profile  
 More options Jul 1, 11:58 am
From: Cerebrus <zorg...@sify.com>
Date: Wed, 1 Jul 2009 08:58:09 -0700 (PDT)
Local: Wed, Jul 1 2009 11:58 am
Subject: Re: Conversion from .txt to .xls
Lol ! $1 for the spoonfeeding! :-)

On Jul 1, 7:59 pm, The_Fruitman <evilfruitsmas...@gmail.com> wrote:


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Devadula  
View profile  
 More options Jul 2, 1:05 am
From: Devadula <pavandevad...@gmail.com>
Date: Wed, 1 Jul 2009 22:05:54 -0700 (PDT)
Local: Thurs, Jul 2 2009 1:05 am
Subject: Re: Conversion from .txt to .xls
Imports XL = Microsoft.Office.Interop.Excel
Public Class Form1

    Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MyBase.Load

        Dim XLapp As New XL.Application

        Dim Filename As String = "sqlquery" 'sqlquery.txt

        Dim Origin As Object

        Dim StartRow As Object

        Dim DataType As Object

        Dim TextQualifier As XL.XlTextQualifier

        Dim ConsecutiveDelimiter As Object

        Dim Tab As Object

        Dim Semicolon As Object

        Dim Comma As Object

        Dim Space As Object

        Dim Other As Object

        Dim OtherChar As Object

        Dim FieldInfo As Object

        Dim TextVisualLayout As Object

        Dim DecimalSeparator As Object

        Dim ThousandsSeparator As Object

        Dim TrailingMinusNumbers As Object

        Dim Local As Object

         XLapp.Workbooks.OpenText(Filename, XL.XlPlatform.xlWindows,
1, XL.XlTextParsingType.xlDelimited,
Microsoft.Office.Interop.Excel.XlTextQualifier.xlTextQualifierSingleQuote,
ConsecutiveDelimiter, Tab, Semicolon, Comma, Space, Other, OtherChar,
FieldInfo, TextVisualLayout, DecimalSeparator, ThousandsSeparator,
TrailingMinusNumbers, Local)
        Dim workbook1 As XL.Workbook = XLapp.ActiveWorkbook

        workbook1.SaveAs("NewFileName", XL.XlFileFormat.xlExcel7)

in the above code at starting itself near " Dim XLapp As New
XL.Application " i'm getting an error..
the error is..""Retrieving the COM class factory for component with
CLSID {00024500-0000-0000-C000-000000000046} failed due to the
following error: 80040154.""...In my system MSOffice is not
installed..can u pls help for this..


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Karthikeyan R  
View profile  
 More options Jul 2, 7:41 am
From: Karthikeyan R <karthi...@gmail.com>
Date: Thu, 2 Jul 2009 17:11:14 +0530
Local: Thurs, Jul 2 2009 7:41 am
Subject: Re: [DotNetDevelopment] Re: Conversion from .txt to .xls

Please install Ms-Office !

--
Thanks & Regards,
Karthikeyan

    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
pavan gupta  
View profile  
 More options Jul 2, 9:26 am
From: pavan gupta <pavandevad...@gmail.com>
Date: Thu, 2 Jul 2009 18:56:53 +0530
Local: Thurs, Jul 2 2009 9:26 am
Subject: Re: [DotNetDevelopment] Re: Conversion from .txt to .xls

is there any way instead of installing MS Office..

--
Best Regards,
Pavan Kumar DNN.


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
The_Fruitman  
View profile  
 More options Jul 3, 11:55 am
From: The_Fruitman <evilfruitsmas...@gmail.com>
Date: Fri, 3 Jul 2009 08:55:46 -0700 (PDT)
Local: Fri, Jul 3 2009 11:55 am
Subject: Re: Conversion from .txt to .xls
Only if you aren't converting to an xls file.

On Jul 2, 7:26 am, pavan gupta <pavandevad...@gmail.com> wrote:


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Processor Devil  
View profile  
 More options Jul 3, 11:58 am
From: Processor Devil <processor.de...@gmail.com>
Date: Fri, 3 Jul 2009 17:58:01 +0200
Local: Fri, Jul 3 2009 11:58 am
Subject: Re: [DotNetDevelopment] Re: Conversion from .txt to .xls

Well, of course, you can convert it without installing Ms OFFICE. But
because OpenOffice will not work this way, you have to make your own data
parser :)

2009/7/3 The_Fruitman <evilfruitsmas...@gmail.com>


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Peter Smith  
View profile  
 More options Jul 15, 4:12 pm
From: Peter Smith <psmith.w...@gmail.com>
Date: Wed, 15 Jul 2009 16:12:32 -0400
Local: Wed, Jul 15 2009 4:12 pm
Subject: Re: [DotNetDevelopment] Conversion from .txt to .xls

On Tue, Jun 30, 2009 at 7:13 AM, Devadula<pavandevad...@gmail.com> wrote:

> hai every body..i need code for window application in vb language for
> the converting .txt file to .xls file..

> Thanks in Advance

You guys are all being too hard on Devadula.

Simple questions demand simple answers.

I haven't done VB since v5, but, here you go.
----------------------------------------------------------
Private Sub Command1_Click()
#
On Error Resume Next
#
    Name "Devadula.txt" As "Devadula.xls"
#
End Sub


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Processor Devil  
View profile  
 More options Jul 16, 3:19 am
From: Processor Devil <processor.de...@gmail.com>
Date: Thu, 16 Jul 2009 09:19:32 +0200
Local: Thurs, Jul 16 2009 3:19 am
Subject: Re: [DotNetDevelopment] Re: Conversion from .txt to .xls

:D :D, ok, you've won :)

2009/7/15 Peter Smith <psmith.w...@gmail.com>


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Processor Devil  
View profile  
 More options Jul 16, 3:47 am
From: Processor Devil <processor.de...@gmail.com>
Date: Thu, 16 Jul 2009 09:47:39 +0200
Local: Thurs, Jul 16 2009 3:47 am
Subject: Re: [DotNetDevelopment] Re: Conversion from .txt to .xls

I hope this will not take too much space...

Ok, if you want to convert txt file to the xls, you have lucky day. Because
new Excel format looks like XML, you easily can create code, which makes
something like

<?xml version="1.0"?>
<?mso-application progid="Excel.Sheet"?>
<Workbook xmlns="urn:schemas-microsoft-com:office:spreadsheet"
 xmlns:o="urn:schemas-microsoft-com:office:office"
 xmlns:x="urn:schemas-microsoft-com:office:excel"
 xmlns:ss="urn:schemas-microsoft-com:office:spreadsheet"
 xmlns:html="http://www.w3.org/TR/REC-html40">
 <DocumentProperties xmlns="urn:schemas-microsoft-com:office:office">
  <LastAuthor>basad01</LastAuthor>
  <Created>2009-07-16T07:43:44Z</Created>
  <Version>11.9999</Version>
 </DocumentProperties>
 <ExcelWorkbook xmlns="urn:schemas-microsoft-com:office:excel">
  <WindowHeight>9090</WindowHeight>
  <WindowWidth>13260</WindowWidth>
  <WindowTopX>480</WindowTopX>
  <WindowTopY>30</WindowTopY>
  <ProtectStructure>False</ProtectStructure>
  <ProtectWindows>False</ProtectWindows>
 </ExcelWorkbook>
 <Styles>
  <Style ss:ID="Default" ss:Name="Normal">
   <Alignment ss:Vertical="Bottom"/>
   <Borders/>
   <Font/>
   <Interior/>
   <NumberFormat/>
   <Protection/>
  </Style>
  <Style ss:ID="s21">
   <Font x:Family="Swiss" ss:Bold="1"/>
  </Style>
 </Styles>
 <Worksheet ss:Name="blbost">
  <Table ss:ExpandedColumnCount="2" ss:ExpandedRowCount="4"
x:FullColumns="1"
   x:FullRows="1">
   <Column ss:AutoFitWidth="0" ss:Width="61.5"/>
   <Column ss:AutoFitWidth="0" ss:Width="120.75"/>
   <Row>
    <Cell ss:StyleID="s21"><Data ss:Type="String">Title 1</Data></Cell>
    <Cell ss:StyleID="s21"><Data ss:Type="String">Title2</Data></Cell>
   </Row>
   <Row>
    <Cell><Data ss:Type="String">test1</Data></Cell>
    <Cell><Data ss:Type="String">test2</Data></Cell>
   </Row>
   <Row>
    <Cell><Data ss:Type="String">testA</Data></Cell>
    <Cell><Data ss:Type="String">testB</Data></Cell>
   </Row>
   <Row>
    <Cell><Data ss:Type="String">testX</Data></Cell>
    <Cell><Data ss:Type="String">testY testZ</Data></Cell>
   </Row>
  </Table>
  <WorksheetOptions xmlns="urn:schemas-microsoft-com:office:excel">
   <Print>
    <ValidPrinterInfo/>
    <HorizontalResolution>200</HorizontalResolution>
    <VerticalResolution>200</VerticalResolution>
   </Print>
   <Selected/>
   <Panes>
    <Pane>
     <Number>3</Number>
     <RangeSelection>R1C1:R1C2</RangeSelection>
    </Pane>
   </Panes>
   <ProtectObjects>False</ProtectObjects>
   <ProtectScenarios>False</ProtectScenarios>
  </WorksheetOptions>
 </Worksheet>
</Workbook>

2009/7/16 Processor Devil <processor.de...@gmail.com>


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
pavan gupta  
View profile  
 More options Jul 16, 3:05 am
From: pavan gupta <pavandevad...@gmail.com>
Date: Thu, 16 Jul 2009 12:35:32 +0530
Local: Thurs, Jul 16 2009 3:05 am
Subject: Re: [DotNetDevelopment] Re: Conversion from .txt to .xls

thank u for ur answer...

--
Best Regards,
Pavan Kumar DNN.


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2009 Google