Object "V83.COMConnector" is error on Web - client

Powerful and flexible application for small business management. See 1C:Small Business description

#1
People who like this:0Yes/0No
Just came
Rating: 1
Joined: Sep 16, 2014
Company:

I code on 1C SB (8.3.4.496) connect to 1C (Other):

Code
Function GenerateReportBalance(StartDate, EndDate, Account, Entity, ReportNumber)
   
   Spreadsheet = New SpreadsheetDocument;
   
   Template = GetTemplate("Template");
   
   LcAmount = "NFD = 0";
   
   
   V8 = New COMObject("V83.COMConnector");
   ojBN = V8.Connect("File = E:\BACNINH; Usr = XXXX;Pwd=xxxxxxx;");
   
   Query = ojBN.NewObject("Query", "SELECT
   |   a.Account AS Account,
   |   a.Account.Description AS AccountName,
   |   a.TienOpeningBalanceDr AS OpeningDebit,
   |   a.TienOpeningBalanceCr AS OpeningCredit,
   |   a.TienTurnoverDr AS TurnoverDebit,
   |   a.TienTurnoverCr AS TurnoverCredit,
   |   a.TienClosingBalanceDr AS ClosingDebit,
   |   a.TienClosingBalanceCr AS ClosingCredit
   |FROM
   |   AccountingRegister.CanDoiTaiKhoan.BalanceAndTurnovers(&LdTuNgay, &LdDenNgay, , , , ) AS a
   |WHERE
   |   a.Account.Code LIKE &LcTk
   |TOTALS
   |   SUM(OpeningDebit),
   |   SUM(OpeningCredit),
   |   SUM(TurnoverDebit),
   |   SUM(TurnoverCredit),
   |   SUM(ClosingDebit),
   |   SUM(ClosingCredit)
   |BY
   |   Account HIERARCHY
   |AUTOORDER");

   LcTk    = TrimAll(Account.Code) + "%";
   

   Query.SetParameter("LdTuNgay", BegOfDay(StartDate));
   Query.SetParameter("LdDenNgay", EndOfDay(EndDate));

   Query.SetParameter("LcTk", LcTk);
   
   SelectionDetails = Query.Execute().Select();

..................

On File - Server, run succeed full

But on Web - client is error (invalied class string)

Pls, help me run on Web - client

Download error.jpg (146.56 KB)
 
#2
People who like this:0Yes/0No
Active user
Rating: 4
Joined: Sep 1, 2014
Company: Smart ID Dynamics

Try with V8 = New COMObject("V82.COMConnector") instead of V8 = New COMObject("V83.COMConnector") because it depends of infobase version you try to connect using COMObject.

 
#3
People who like this:0Yes/0No
Timofey Bugaevsky
Guest

Joined:
Company:

Hello, Ha Thien Thach!
First, try to reinstall 1C:Enterprise, then to update to the latest version.
If this will not help, try to run the following command:
regsvr32 "C:\Program Files (x86)\1cv8\<1C:Enterprise version, for example 8.3.5.1460>\bin\comcntr.dll"

You also should note that only Internet Explorer for Windows web client provides support for COM objects. They also should be allowed in the browser options.

 
#4
People who like this:0Yes/0No
Just came
Rating: 1
Joined: Sep 16, 2014
Company:

I done!
1. Install 1C 8.3.5.1460
2. regsvr32 "C:\Program Files\1cv8\8.3.5.1460\bin\comcntr.dll"

Run on IE (Web-client) and success.

Thanks
...................................

Download reg32.jpg (35.88 KB)
 
Subscribe
Users browsing this topic (guests: 1, registered: 0, hidden: 0)
Be the first to know tips & tricks on business application development!

A confirmation e-mail has been sent to the e-mail address you provided .

Click the link in the e-mail to confirm and activate the subscription.