View Single Post
  #5   Report Post  
Posted to microsoft.public.excel.programming
Ed White Ed White is offline
external usenet poster
 
Posts: 34
Default Console.Writeline output in VSTO

Thanks very much for this response. I tried it, and it works, except the
Debug.Print does not output to the Output window, it outputs to VSs
Immediate window on my PC.
--
Ed


""Jialiang Ge [MSFT]"" wrote:

Hello Ed,

1. Debug.Print

I meant the window at VS-View-Output or VS-Debug-Windows-Output by
"Output Window".

You said that by no mean could you find the output of Debug.Print, would
you please check whether the current build mode is set to "Debug" (To
better illustrate it, I have sent an email to you with the screenshot)? Is
the "DEBUG" constant defined in the build option? Debug.Print outputs the
content to the Output Window as long as we are in Debug mode and the
"DEBUG" constant is defined.

2. Console.WriteLine

Console.Write outputs the content to the standard IO. You can see the
output in the "Console Window" of a normal Winform project, because the
Winform package helps us to redirect the content to the window. But for
VSTO, the VSTO package did not do it because the VSTO designers believe
Debug.Print is functional enough for the purpose.

If you have any other questions or concerns, please DON'T hesitate to tell
me.

Regards,
Jialiang Ge , remove 'online.')
Microsoft Online Community Support

=================================================
Delighting our customers is our #1 priority. We welcome your comments and
suggestions about how we can improve the support we provide to you. Please
feel free to let my manager know what you think of the level of service
provided. You can send feedback directly to my manager at:
.

This posting is provided "AS IS" with no warranties, and confers no rights.
=================================================