dotnet / dotnet/samples

COMServerDemo Sample not show in VBA

Open
#4,432 3 comments 0 reactions 0 assignees View on GitHub
Dominant language
C#
Stars
3.7k
Forks
5.1k
Avg merge
9h 11m
Merged PRs (30d)
1

Description

Hey,
I did everything in this address :
[https://docs.microsoft.com/en-us/dotnet/core/native-interop/expose-components-to-com](url)

When i register my DLL with command below, It will show success message :
`regsvr32 "D:\CoreComTest\bin\Debug\netcoreapp3.1\CoreComTest.comhost.dll"`

But after i open Word or Excel i can't see my dll in references.

So i download the sample in address :
[https://github.com/dotnet/samples/tree/main/core/extensions/COMServerDemo](url)

I build the server project and used the command below :
`regsvr32 "D:\COMServerDemo\COMServer\bin\Debug\netcoreapp3.1\COMServer.comhost.dll"`
Like my sample it says Success, But after i tried to use it in Excel or Word still i can't see COMServer in references.

I tested both project (CoreComTest and COMServer) in .Net 5 too but still the same, Success msg in regsvr32 but not show in VBA.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.