English
Includes

Excel2lv.inc

 
- Page 1 -



ByteAttack
On of my Page there now a Include-File, with the one with only one commands, one complete Tabellenblatt of Excel in a List view import can.

[...] 

example:
 $I Excel2lv.inc
Window Style 26
Window Title Excel
Window 0,0-800,600
Declare lvdll&,lvliste&
lvdll&=usedll($PROGDIR+Listview.dll)
 $I ListView_Include.inc
tab(123456)
lvliste&=CreateListView(%hwnd,%hinstance,0,$FFFFFF,-1,$31)
Excel2LV C:scheduler.xls,scheduler1,lvliste&  Excel-scheduler, Tabellenname, LV-lever
ShowListView(lvliste&,10,10,728,528)
WaitMouse
 $I ListView_Dispose.inc

589 kB
Kurzbeschreibung: Excel2ListView.zipper
Hochgeladen:10/25/07
Downloadcounter464
Download
 
Website:  [...] 
Facebook:  [...] 
10/24/07  
 



 
- Page 1 -



Detlef
Jagolski
must one whom Excel Files without Excel create?
 
XProfan X4, PRFellow, Profan2Cpp - Version 2.0c-pre5, Windows 11
10/25/07  
 




Christian
Schneider
Yes. the Dateiformat isn't protected (would neither absolutely förderlich).

OpenOffice (and diverse others programs) can also Excel-Files create.
 
XProfan 11| Vista(64) SP2
10/25/07  
 




ByteAttack
Hello Detlef.
I hoff the was a Scherzfrage. or at least ironical meant...
 
Website:  [...] 
Facebook:  [...] 
10/26/07  
 




Michael
Wodrich
with M$ is still everything imaginable...
 
Programmieren, das spannendste Detektivspiel der Welt.
10/26/07  
 



 
- Page 2 -



ByteAttack
XML2CSV

Well, not yet integrally ready, but in the make...
 $P*
USERMESSAGES 16  X-Schaltfläche
Declare close%,scheduler$
Tabelle$=scheduler1
Declare Global_String$
Assign #4,$TempDir+c2l.csv
Rewrite #4
###################################
# Converts The XML in a CSV #
###################################

Proc XML2CSV

    Declare row$,abhier%,bishier%,Row%,String$,ridge%
    Assign #3,$TempDir+Calc2lv.xml
    Reset #3

    WhileNot Eof(#3)

        Input #3,row$

        if abhier%=0

            if InStr(tab$,row$)

                abhier%=1

            endif

        else

            if InStr(</table:table>,row$)

                Return 0

            else

                if Row%=1

                    if InStr(</table:table-cell,row$)  EndeSpalte

                        Row%=0

                    endif

                endif

                if Row%=0

                    if InStr(<table:table-row,row$)  slot

                        Row%=1

                    endif

                endif

                if InStr(</Text:p>,row$)

                    String$=Translate$(row$,</Text:p>,)

                    if Row%=1

                        Global_String$=Global_String$+;+String$

                        if ridge%=1

                            print #4,Global_String$

                        else

                            ridge%=1

                        endif

                        Global_String$=String$

                    else

                        Global_String$=Global_String$+;+String$

                    endif

                endif

            endif

        endif

    EndWhile

    Close #3

ENDPROC

################################################    ###
# Converts The einzelen <> segments.      #   ###
# DAUERT ABER NE EWIGKEIT BEI GROSSEN TABELLEN #  #############################
# WER HIER EINEN VORSCHLAG HAT - BITTE POSTEN  #   ###
################################################    ###

Proc ConvertXML

    Parameters Fragment$
    Declare end%,index%,long%,characters$
    long%=Len(Fragment$)

    WhileNot index%>lang%

        characters$=Mid$(Fragment$,index%,1)

        if characters$=>

            Global_String$=Global_String$+characters$
            print #2,Global_String$
            Global_String$=

        else

            Global_String$=Global_String$+characters$

        endif

        Inc index%

    Wend

ENDPROC

########################################################################
# the XML-Dokumnet exists from EINEM String.                           #
# Proc Convert255 divides whom EINEN String in 255characters-Fragmente on   #
# is necessary there The max. Zeichenlänge under XProfan 32767 characters   #
# totals.                                                             #
########################################################################

Proc Convert255

    Parameters XMLDatei$
    Declare B#,amount%,bytes&,teiler&,uebrig&,Index&,row$,tab$
    Assign #2,$TempDir+Calc2lv.xml
    Rewrite #2
    tab$=<table:table table:name=+Chr$(34)+scheduler$+Chr$(34)
    bytes&=FileSize(XMLDatei$)
    teiler&=bytes&/255
    uebrig&=bytes&-(teiler&*255)
    Dim B#,bytes&
    Assign #1,XMLDatei$
    OpenRW #1
    amount%=BlockRead(#1,B#,0,bytes&)
    CloseRW #1

    WhileNot Index&=teiler&

        row$=Char$(B#,Index&*255,255)
        ConvertXML row$
        Inc Index&

    Wend

    row$=Char$(B#,Index&*255,uebrig&)
    ConvertXML row$
    Dispose B#
    close #2
    XML2CSV
    print ready
    Close #4

ENDPROC

#### Hauptprogramm
Window Style 26
Window Title OOCalc2ListView
Window 0,0-%maxX,%maxY
Convert255 $PROGDIR+content.xml

WhileNot close%

    GetMessage
    Case %Umessage=16:close%=1

Wend


7 kB
Kurzbeschreibung: example XML
Hochgeladen:10/26/07
Downloadcounter426
Download
 
Website:  [...] 
Facebook:  [...] 
10/26/07  
 




is necessary since the max. Zeichenlänge under XProfan 32767 characters #
# totals.


XProfan-Strings can 2GB grasp, over 8k go tappt im dunkeln however something slower.

If I still only slightly More Time had could I time try The XML faster to CSV To konvertieren, I see here another couple Effektivitätslücken.
 
10/26/07  
 




ByteAttack
JA! Dive in. I have the thing quasi Zusammengeschustert
have in the momentum too net so really Time.
 
Website:  [...] 
Facebook:  [...] 
10/26/07  
 




Frank
Abbing
with enough want could I the whole too as Dll-function to assimilate. Dürfte in Assembler on the fastest works.
 
10/26/07  
 



an ASM XML2CSV or. XML2ListBox would eh yummy.
 
10/26/07  
 




Frank
Abbing
iF
an ASM XML2CSV or. XML2ListBox would eh yummy.


Listbox, pfftt. we're here in the Listview-Forum...
 
10/26/07  
 



Frank Abbing
iF
an ASM XML2CSV or. XML2ListBox would eh yummy.


Listbox, pfftt. we're here in the Listview-Forum...


Tschuldigung
 
10/26/07  
 




Answer


Topictitle, max. 100 characters.
 

Systemprofile:

no Systemprofil laid out. [anlegen]

XProfan:

 Posting  Font  Smilies  ▼ 

Please register circa a Posting To verfassen.
 

Topic-Options

19.333 Views

Untitledvor 0 min.
H.Brill11/15/23
Rc01/31/22
Langer01/29/22
Member 640534301/17/22
More...

Themeninformationen



Admins  |  AGB  |  Applications  |  Authors  |  Chat  |  Privacy Policy  |  Download  |  Entrance  |  Help  |  Merchantportal  |  Imprint  |  Mart  |  Interfaces  |  SDK  |  Services  |  Games  |  Search  |  Support

One proposition all XProfan, The there's!


My XProfan
Private Messages
Own Storage Forum
Topics-Remember-List
Own Posts
Own Topics
Clipboard
Log off
 Deutsch English Français Español Italia
Translations

Privacy Policy


we use Cookies only as Session-Cookies because of the technical necessity and with us there no Cookies of Drittanbietern.

If you here on our Website click or navigate, stimmst You ours registration of Information in our Cookies on XProfan.Net To.

further Information To our Cookies and moreover, How You The control above keep, find You in ours nachfolgenden Datenschutzerklärung.


all rightDatenschutzerklärung
i want none Cookie