473,386 Members | 2,129 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

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 8266
On Mon, 12 Sep 2005 11:44:07 GMT, Raghu Gupta <am*********@yahoo.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.software.financial.quickbooks 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*********@yahoo.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.software.financial.quickbooks which seems to be an active group

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

On Error GoTo ErrHandler

resListID = ""

Dim retStatusCode As String
Dim retStatusMessage As String
Dim retStatusSeverity As String

' Create xmlDoc Obj

' DOM Document Object
Dim xmlDoc As New MSXML2.DOMDocument40

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

' Node objects
Dim objChild As IXMLDOMNode
Dim custChildNode As IXMLDOMNode
Dim invoiceChildNode As IXMLDOMNode

' Attributes Name Mapping
Dim attrNamedNodeMap As IXMLDOMNamedNodeMap

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.parseError.Reason
GoTo ErrHandler
End If

' Get nodes list
Set objNodeList = xmlDoc.getElementsByTagName(elementName)

' 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.length - 1)

' Get the CustomerRetRs
Set attrNamedNodeMap = objNodeList.Item(i).Attributes

' Get the status Code, info and Severity
'
retStatusCode =
attrNamedNodeMap.getNamedItem("statusCode").nodeVa lue
retStatusSeverity =
attrNamedNodeMap.getNamedItem("statusSeverity").no deValue
retStatusMessage =
attrNamedNodeMap.getNamedItem("statusMessage").nod eValue

' 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 retStatusSeverity = "Warning" Then
' Show the warning, then continue normal processing
MsgBox retStatusMessage, vbExclamation, "Warning from
QuickBooks"
ElseIf retStatusSeverity = "Error" Then
MsgBox retStatusMessage, 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.
ParseResponseXML = False
Exit Function
End If
End If

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

' Get the CustomerRet block if we were adding a customer
If objChild.nodeName = "CustomerRet" Then

' Get the elements in this block
For Each custChildNode In objChild.childNodes
If custChildNode.nodeName = "ListID" Then
resListID = custChildNode.Text
ElseIf custChildNode.nodeName = "Name" Then
resCustName = custChildNode.Text
ElseIf custChildNode.nodeName = "FullName" Then
resCustFullName = custChildNode.Text
End If
Next

End If ' End of customerRet
' Get the "InvoiceQueryRet" 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.nodeName = "InvoiceRet" Then

For Each invoiceChildNode In objChild.childNodes
If invoiceChildNode.nodeName = "CustomerRef" Then

' Get the elements in this block
For Each custChildNode In
invoiceChildNode.childNodes
If custChildNode.nodeName = "ListID" Then
resListID = custChildNode.Text
ElseIf custChildNode.nodeName = "Name" Then
resCustName = custChildNode.Text
ElseIf custChildNode.nodeName = "FullName" Then
resCustFullName = custChildNode.Text
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.nodeName =
"FullName" Then
custName = objChild.Text
End If ' end of ListDelType
Next
Next

BreakPoint:
ParseResponseXML = True
Exit Function

ErrHandler:
If errorMsg <> "" Then
MsgBox errorMsg, vbExclamation, "Error"
Else
MsgBox Err.Description, vbExclamation, "Error"
End If
ParseResponseXML = 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
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...
3
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...
3
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 -...
5
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...
0
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...
6
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. ...
0
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...
1
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)...
3
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...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.