Ptero 0 Newbie Poster

I have an ASP.NET application that generates Excel files that should be downloaded by user. These files contain some VBA code that is added with oWB.VBProject.VBComponents.Item(i).CodeModule.AddFromString(s). The "Trust access to Visual Basic Project" in Excel > Tools > Macros > Security is checked. The "Network User", "ASPNET", "IUSER", "IWAM" users have permissions to access/launch/etc. Excel ( with DCOMCNFG ). But still the execution on server (Win2003) fails on "Programmatic access to Visual Basic Project is not trusted"! Any ideas?

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.