Author Topic: Establishing QuickBooks Session  (Read 2205 times)


  • Member
  • *
  • Posts: 6
Establishing QuickBooks Session
« on: August 20, 2010, 10:37:24 PM »
Ok, maybe a silly question; can you call a script to QuickBooks if QuickBooks is not running? From the Function Guide, description for "PCQB BeginSession":
"If QuickBooks is already launched with an open company file, this value can be an empty string and FM Books Connector will attach to the currently open company file. If no file is open and no company file is specified, an error will occur. If the company file opened is different than the specified file path, than an error will occur."

Doesn't say anything about what happens if QuickBooks isn't launched.

Reading the Developer's Guide, under the heading "Establish Initial Connection with QuickBooks Company File":
"When making a call to QuickBooks via the FM Books Connector plug-in, you will see a screen similar to the one below. Once this screen appears, select the appropriate radio button to continue and allow communication with QuickBooks. We recommend selecting the 4th radio button as shown below."

That fourth radio button reads: "Yes, always: allow acces even if QuickBooks is not running."

Sounds like if I run a script that sends a request to a specified QuickBooks file, and QuickBook is not running, QuickBooks will be launched and the file opened. True? Open hidden? I'd prefer users not see the QuickBooks file.

Melinda DePalma

  • Member
  • *
  • Posts: 179
    • Productive Computing
Re: Establishing QuickBooks Session
« Reply #1 on: August 25, 2010, 08:24:48 AM »
Yes, when you make a call to PCQB_BeginSession and specify the QuickBooks file to open in the CompanyFile parameter, if QuickBooks is not open, then QuickBooks will open in the background (more specifically the QBW32.exe process will be invoked). The users will not see the QuickBooks file or interface, but the QuickBooks will be open in the background.