Paste the following code in the form_load event of a form in VB 6.0 and try it:
Dim Axapta As AxaptaCOMConnector.Axapta2Dim Buffer As AxaptaCOMConnector.IAxaptaBufferSet Axapta = New Axapta2 Axapta.Logon2 "Username", "password", "CompanyCode", "en-us", , , "AxaptaConfiguration" 'Create Axapta bufferSet Buffer = Axapta.CreateBuffer 'Read file into buffer. Create this file first and enter some text in it.Buffer.ReadFile "C:\MyReadFile.Txt"'Write buffer to another file. You don't need to create this file before.'Check the content of this file after code executionBuffer.WriteFile "C:\MyWriteFile2.Txt"
VardenMorris
J. Wray Nephew Ltd. - Group I.S.
234 Spanish Town Road
Kingston 11, Jamaica, W.I.
Phone: (876) - 923 - 6141 Ext. 2400, 2412Fax: (876) - 923 -5372
Cell: (876) - 3833566Email: [EMAIL PROTECTED] [EMAIL PROTECTED]
alpgiraysimsek [EMAIL PROTECTED] wrote:
Can anyone share with me sample code that uses this interface? I could not find anywhere else.Thanks,GiraySharing the knowledge on Axapta.
Do you Yahoo!?
Yahoo! Mail - now with 250MB free storage. Learn more.
Sharing the knowledge on Axapta.
Yahoo! Groups Sponsor
ADVERTISEMENT
Yahoo! Groups Links
To visit your group on the web, go to:http://groups.yahoo.com/group/Axapta-Knowledge-Village/
To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.