Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Report to EXCEL
Message
From
14/07/1999 07:10:14
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
14/07/1999 06:07:22
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Miscellaneous
Thread ID:
00241166
Message ID:
00241183
Views:
15
>my client need all report can read from EXCEL
>my report as below :
>
>*****
>print by ABC XXX company 22 Jan,1999 10:00am
> AA sales report
>
>invoice no. date amount outstand
>----------- ---- ------ --------
>990001 20/02/99 800 800
>990002 30/02/99 40 100
>
>*****
>
>how can i put it in EXCEL
Hs,
Starting with invoiceno part is easy :) Above that need some .Cell(nRow, nCol).value = ..., font.Bold = .. etc coding.
You could just export your data to excel or copy to ... type xls. Another option is to use Application.Datatoclip and paste in excel. ie: Paste sample :
lparameters tcDataCursor
Application.DataToClip(tcDataCursor,reccount(tcDataCursor),3)  && Paste VFP data to clipboard

oExcel = createobject("excel.application")
with oExcel
 .Workbooks.add
 with .activesheet
   .Cells(1,1).Select && Select where to paste
   .Paste
 endwith
endwith
This method is fast and works with data that's not more than 2000-3000 records.
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Reply
Map
View

Click here to load this message in the networking platform