Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Insert excel sheet into word doc
Message
From
26/06/2015 12:00:25
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Title:
Insert excel sheet into word doc
Environment versions
Visual FoxPro:
VFP 9
OS:
Windows Server 2012
Network:
Windows 2008 Server
Database:
MS SQL Server
Application:
Web
Miscellaneous
Thread ID:
01621486
Message ID:
01621486
Views:
55
in the past users had to print about 200 agency data on a report
each of them contains 1 word doc as cover sheet and 1 to many excel sheets
so they printed all word docs then all excels of one type and then all of another type and then had to collate all that by hand
awful!

i would like to create a word doc, insert a section break at the end and insert the first elsx, another section break and the next xlsx

what I can't find is how to insert a section break and then I could
oDocument.InlineShapes.AddOLEObject("Excel.Sheet.12","H:\vAPPBAI\vBAI\Excel\AAVF_2014630_AES48000.xlsx",.t.,.f.)
but the excel sheet is to wide. can I scale it to fit between the left and right margin??

thanks

in case someone thinks i should google it, I did!


Peter
Peter Cortiel
Reply
Map
View

Click here to load this message in the networking platform