473,809 Members | 2,701 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How to read .iif file of Quickbooks using vb or any code

Hi,
Actually i am facing some problem using quickbooks and presently i am
not so expert in using it.

I am using c# code to retrive the data from quickbooks.
it doesn't matter which language we are using.
So i have .iif file of employee list,so through code i have to read .iif
file and get the data out of it and store that data in database.

As i can use QuickBook only to import .iif file and from quickbook i can
read the data, but there will be many .iif files, so i should read it
dynamically and store it in database.And there should be no intervention
of QuickBook SDK in this process.

so my problem is,i need quickbook sdk code such that i can read .iif
file and retrive the data.

so, please can u help me with any suggestions or any good tutorials
concerned to this.

Thank you,

Regards,
Raghu

*** Sent via Developersdex http://www.developersdex.com ***
Nov 13 '05 #1
2 8322
On Mon, 12 Sep 2005 11:44:07 GMT, Raghu Gupta <am*********@ya hoo.com> wrote:
Hi,
Actually i am facing some problem using quickbooks and presently i am
not so expert in using it.

I am using c# code to retrive the data from quickbooks.
it doesn't matter which language we are using.
So i have .iif file of employee list,so through code i have to read .iif
file and get the data out of it and store that data in database.

As i can use QuickBook only to import .iif file and from quickbook i can
read the data, but there will be many .iif files, so i should read it
dynamically and store it in database.And there should be no intervention
of QuickBook SDK in this process.

so my problem is,i need quickbook sdk code such that i can read .iif
file and retrive the data.

so, please can u help me with any suggestions or any good tutorials
concerned to this.

Thank you,

Regards,
Raghu

*** Sent via Developersdex http://www.developersdex.com ***


Hi
you could try posting in alt.comp.softwa re.financial.qu ickbooks which seems to be an active group

Nov 13 '05 #2
bc3
rude person wrote:
On Mon, 12 Sep 2005 11:44:07 GMT, Raghu Gupta <am*********@ya hoo.com> wrote:

Hi,
Actually i am facing some problem using quickbooks and presently i am
not so expert in using it.

I am using c# code to retrive the data from quickbooks.
it doesn't matter which language we are using.
So i have .iif file of employee list,so through code i have to read .iif
file and get the data out of it and store that data in database.

As i can use QuickBook only to import .iif file and from quickbook i can
read the data, but there will be many .iif files, so i should read it
dynamically and store it in database.And there should be no intervention
of QuickBook SDK in this process.

so my problem is,i need quickbook sdk code such that i can read .iif
file and retrive the data.

so, please can u help me with any suggestions or any good tutorials
concerned to this.

Thank you,

Regards,
Raghu

*** Sent via Developersdex http://www.developersdex.com ***

Hi
you could try posting in alt.comp.softwa re.financial.qu ickbooks which seems to be an active group

' Parse response XML from QuickBooks using MSXML parser
Public Function ParseResponseXM L(elementName As String) As Boolean

On Error GoTo ErrHandler

resListID = ""

Dim retStatusCode As String
Dim retStatusMessag e As String
Dim retStatusSeveri ty As String

' Create xmlDoc Obj

' DOM Document Object
Dim xmlDoc As New MSXML2.DOMDocum ent40

' DOM Node list object for looping through
Dim objNodeList As IXMLDOMNodeList

' Node objects
Dim objChild As IXMLDOMNode
Dim custChildNode As IXMLDOMNode
Dim invoiceChildNod e As IXMLDOMNode

' Attributes Name Mapping
Dim attrNamedNodeMa p As IXMLDOMNamedNod eMap

Dim i As Integer
Dim ret As Boolean
Dim errorMsg As String

errorMsg = ""

' Load xml doc
ret = xmlDoc.loadXML( responseXML)
If Not ret Then
errorMsg = "loadXML failed, reason: " & xmlDoc.parseErr or.Reason
GoTo ErrHandler
End If

' Get nodes list
Set objNodeList = xmlDoc.getEleme ntsByTagName(el ementName)

' Loop through each node
' Since we have only one request, we should only have one
' response. The loop is actually unnecessary, but it
' is a good programming practice
For i = 0 To (objNodeList.le ngth - 1)

' Get the CustomerRetRs
Set attrNamedNodeMa p = objNodeList.Ite m(i).Attributes

' Get the status Code, info and Severity
'
retStatusCode =
attrNamedNodeMa p.getNamedItem( "statusCode").n odeValue
retStatusSeveri ty =
attrNamedNodeMa p.getNamedItem( "statusSeverity ").nodeValu e
retStatusMessag e =
attrNamedNodeMa p.getNamedItem( "statusMessage" ).nodeValue

' Check status code to see if there is error or warning
If retStatusCode <> "0" Then
' Checking for Warning is a good practice, although
unlikely to happen
' on an add request.
If retStatusSeveri ty = "Warning" Then
' Show the warning, then continue normal processing
MsgBox retStatusMessag e, vbExclamation, "Warning from
QuickBooks"
ElseIf retStatusSeveri ty = "Error" Then
MsgBox retStatusMessag e, vbExclamation, "Error from
QuickBooks"
' We only have one response thus we will exit. If we
have multiple
' responses, then we may want to continue with the loop.
ParseResponseXM L = False
Exit Function
End If
End If

' Look at the child nodes
For Each objChild In objNodeList.Ite m(i).childNodes

' Get the CustomerRet block if we were adding a customer
If objChild.nodeNa me = "CustomerRe t" Then

' Get the elements in this block
For Each custChildNode In objChild.childN odes
If custChildNode.n odeName = "ListID" Then
resListID = custChildNode.T ext
ElseIf custChildNode.n odeName = "Name" Then
resCustName = custChildNode.T ext
ElseIf custChildNode.n odeName = "FullName" Then
resCustFullName = custChildNode.T ext
End If
Next

End If ' End of customerRet
' Get the "InvoiceQueryRe t" if we were looking for
' an in-use customer by querying for invoices -- if
' we find one of these, we'll have all the information
' we need and can then break from the function.
If objChild.nodeNa me = "InvoiceRet " Then

For Each invoiceChildNod e In objChild.childN odes
If invoiceChildNod e.nodeName = "CustomerRe f" Then

' Get the elements in this block
For Each custChildNode In
invoiceChildNod e.childNodes
If custChildNode.n odeName = "ListID" Then
resListID = custChildNode.T ext
ElseIf custChildNode.n odeName = "Name" Then
resCustName = custChildNode.T ext
ElseIf custChildNode.n odeName = "FullName" Then
resCustFullName = custChildNode.T ext
End If
Next

' If we get here, we have all the information
we need
GoTo BreakPoint

End If
Next

End If ' end of InvoiceQueryRet
' Get the Customer Name if we were deleting a customer
If elementName = "ListDelRs" And objChild.nodeNa me =
"FullName" Then
custName = objChild.Text
End If ' end of ListDelType
Next
Next

BreakPoint:
ParseResponseXM L = True
Exit Function

ErrHandler:
If errorMsg <> "" Then
MsgBox errorMsg, vbExclamation, "Error"
Else
MsgBox Err.Description , vbExclamation, "Error"
End If
ParseResponseXM L = False
Exit Function

End Function
Nov 13 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
2814
by: news | last post by:
We're being asked to get Quickbooks Enterprise edition for our business. We use a completely hand-made online store (PHP and mySQL) and used to simply create CSV sheets that were imported as invoices into regular Quickbooks. But I guess that's neither 100% accurate and may not even be doable in newer Quickbooks. We want to be able to integrate Quickbooks into the system without replacing our system. Has anyone done this?
3
13556
by: cbielich | last post by:
Just as the subject states, if I were to write an Access Datase is it possible to intergrate it with quickbooks. For instance through ODBC or something of the sort. Im not sure how the backend of QuickBooks works as in does it use a database with tables or something of the sort. Just would like to intergrate a database and using it with payroll, and accepting credit cards for payment options. I know QuickBooks can do this but would like to...
3
6965
by: Aliza Klein | last post by:
I have a client who wants to export his Access purchase order data (from the system I am designing) directly into Quickbooks. I know I can create a CSV or similar that Quickbooks can then import - but does anyone know if Quickbooks can be referenced directly (like an instance of Excel etc.) and "talked" to? TIA Aliza -- -----------------------------------
5
6505
by: Karl Irvin | last post by:
I'm using the Write # statement to create a csv export file from Access 2K Some of the data has embedded quotes in it and it doesn't import into QuickBooks correctly. An inventory part with a name of 1/4" Pipe gets truncated to 1/4 with csv Can I create a tab delimited file with Aceess and include the quote mark.
0
592
by: Raghu Gupta | last post by:
Hi, Actually i am facing some problem using quickbooks and presently i am not so expert in using it. I am using c# code to retrive the data from quickbooks. it doesn't matter which language we are using. So i have .iif file of employee list,so through code i have to read .iif file and get the data out of it and store that data in database. As i can use QuickBook only to import .iif file and from quickbook i can
6
3568
by: Jimmy | last post by:
I am developing a project management database for my company and would like to somehow integrate or share data from my quickbooks file. I am currently using Access 2003 and Quickbooks 2003 Pro. In my access database I have a much more in depth customer database but would like to eliminate the need to enter new customers and addresses twice, once in qb and once in the access db. I would also like to be able to read from the items list in...
0
1260
by: bishop237 | last post by:
We have developed a custom ecommerce application in PHP, and we need to create an export function which will allow the data to be seemlessly imported into Quickbooks. We seem to be having trouble with the proper format, and can't really get what we need through the Quickbooks support site. Any help? Ideas? Or already made applications for this??
1
1624
by: Student1000 | last post by:
Ok, i have an access database which is connected to quickbooks in order to make invoices. One of the variables sent to quickbooks is job number. Recently, we 've been having very long(more digits) job numbers that are too big for the textbox in quickbooks. When i click the 'sendtoquickbooks' button in access form, i get an error saying something like 'string is too long '. I want to know how to increase the textbox size in quickbooks...
3
2440
by: agrych | last post by:
hello all, I am trying to pull all of the Sales Receipts data, for a specified date range, into MS Access. So far I am unsuccessful in my attempt. Below is the code that I have so far. FYI, I have temporarily disabled On Error so I can continue to debug this code. My responseList is empty :( Not sure what I'm doing wrong. Any help would greatly be appreciated. Private Sub Command2_Click() 'On Error GoTo Errs Dim Country As...
0
10639
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10383
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10120
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7661
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5550
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5688
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4332
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3861
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3015
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.