Print Page | Close Window

[solved]Help about creating a installation vb net

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: General Discussion
Forum Description: Topics Related to Active-X COM Development in General
URL: http://forum.codejock.com/forum_posts.asp?TID=19188
Printed Date: 21 November 2024 at 9:02am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: [solved]Help about creating a installation vb net
Posted By: kaliand
Subject: [solved]Help about creating a installation vb net
Date Posted: 16 November 2011 at 5:56am
Hi everybody,

i'm having problems when i install my application on a client computer.
i bought the suite ver 15.02 and i'm using on this application the report control.
i'm on windows 7 and visual studio 2008 vb.net.

the way i'm using this control in my forms is as follow:

first i put on my form in design mode the Report control object (drag & drop)

and then in the form code:

Public Class frm1
    Dim WithEvents Report As XtremeReportControl.ReportControl
  
    Public Sub New()
       'License information
        Dim ReportSettings As XtremeReportControl.ReportControlGlobalSettings = New XtremeReportControl.ReportControlGlobalSettings

        ReportSettings.License = "Report Control Copyright (c) 2003-2011 Codejock Software" + ControlChars.CrLf _
        + "PRODUCT-ID: Codejock.ReportControl.ActiveX.v15.0" + ControlChars.CrLf + _
        "VALIDATE-CODE: xxx-xxx-xxx-xxx" (of course replacing the x)

       'Call Designer Form
       InitializeComponent()

       'Here i convert type
        Report = CType(AxReportControl1.GetOcx, XtremeReportControl.ReportControl)
    
     End sub

    Private Sub Form frm1_load (..)
    end sub
   
    (anything)
    ....

end class

Well on my develop computer all works fine, no problems at all, but when i create the install project and install the application on the client computer, this prompts the error message  only when i open a form that contains the report control (the rest of forms works correctly)

What i'm doing wrong? please i need solve this error as soon as it's possible
thank you very much!


for more information i paste the error:

************** Exception Text **************
System.InvalidOperationException: Failed to create the form. See Exception.InnerException for details. Error: Failed to retrieve a COM class factory for component with CLSID {16B9344F-7717-42FD-A483-D1A27C298FDA} because the following error: 80040154. ---> System.Runtime.InteropServices.COMException (0x80040154): Failed to retrieve a COM class factory for component with CLSID {16B9344F-7717-42FD-A483-D1A27C298FDA} because the following error: 80040154.





Replies:
Posted By: SuperMario
Date Posted: 16 November 2011 at 1:24pm
Do you register the OCX on the client machine?



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net