Wrox Programmer Forums
Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 2.0 > ASP.NET 2.0 Professional
| Search | Today's Posts | Mark Forums Read
ASP.NET 2.0 Professional If you are an experienced ASP.NET programmer, this is the forum for your 2.0 questions. Please also see the Visual Web Developer 2005 forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 2.0 Professional section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
  #1 (permalink)  
Old May 17th, 2006, 05:07 AM
Registered User
 
Join Date: May 2006
Location: Ruddervoorde, , .
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default Cannot create ActiveX component in asp.net 2.0

Hellow, I'm trying to print an excel file on the client side.

I click on a button and then it should open excel but nothing happens and i get the error from "Cannot create ActiveX component"

can anybody help me


Dim oExcel As Object
        Dim oWerkbook As Object
        oExcel = CreateObject("Excel.application")
        oExcel.visible = True
        oWerkbook = oExcel.workbooks.Add(AppDomain.CurrentDomain.BaseD irectory & "\templates\dossierKantA.xls") 'overzichtsbladKANTA.xls")

        ' Dim arlKlassen As New ArrayList
        ' arlKlassen = clsKlasDA.GetAlleKlassen
        For Each oITEM As ListItem In arlklassen

            ' Next
            'For Each oklas As clsKlas In arlKlassen
            Dim oKantA As New clsOverzichtsbladKantA
            'oKantA = clsOverzichtsbladKantADA.getOverzichtsBladKantA(ok las.KlasID)
            oKantA = clsOverzichtsbladKantADA.getOverzichtsBladKantA(oI TEM.Value)
            If oKantA.KlasNR IsNot Nothing Then

                Dim oWorksheet As Object
                oWerkbook.sheets("Blad1").select()
                oWerkbook.sheets("Blad1").Copy(After:=oWerkbook.Sh eets(1))
                oWerkbook.Sheets("Blad1 (2)").name = oKantA.KlasNR
                oWerkbook.sheets(oKantA.KlasNR).select()
                oWorksheet = oWerkbook.Activesheet

  #2 (permalink)  
Old December 14th, 2007, 12:17 AM
Registered User
 
Join Date: Nov 2004
Location: Melbourne, VIC, Australia.
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi,
   I could be wrong, I'm fairly new to .net 2. But I think you can only create activex components on the server side and not the client side.



Similar Threads
Thread Thread Starter Forum Replies Last Post
ActiveX Component cannot create Object Madhivanan VB How-To 5 December 23rd, 2006 02:33 AM
ActiveX Component can't create an object lihar Access VBA 1 December 20th, 2006 07:52 AM
cannot create activex component - help please cobweb Classic ASP Components 1 September 14th, 2006 08:40 PM
Cannot create ActiveX Component Ron Howerton Pro VB.NET 2002/2003 0 July 18th, 2006 10:33 AM
ActiveX component can't create object lameneural Classic ASP Components 0 July 4th, 2006 12:14 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.