Answer Questions
Donaghy Setting File Name
Hello All, I have been searching high and low for the answer, hope someone can shed some light. I am using the crystal report viewer object in my application and I would like to provide a default filename in the file dialog box for the export functionality. This is what I currently have in my code, ========== start of code segment ========== ReportClass myReport; // initialized somewhere else CrystalDecisions.Shared.ExportOptions opts = myReport.get_ExportOptions(); opts.set_ExportFormatType(ExportFormatType.PortableDocFormat); opts.set_ExportDestinationType(ExportDestinationType.DiskFile); CrystalDecisions.Shared.DiskFileDestinationOptions fileOpts = opts.CreateDiskFileDestinationOptions(); fileOpts.set_DiskFileName("c: ...Show All
AlexBB ServiceBehavior attribute
I'm reviewing some service implementations written by another developer and I've found a number of concrete classes affixed with the ServiceBehavior attribute. I'm not sure why. The attribute has a single parameter defining the namespace. And it's exactly the same as the namespace parameter in the ServiceContract attribute used for defining the service interface class. Seems redundant to me, but I'd appreciate any feedback on why ServiceBehavior might be used. No need to apply ServiceBehaviorAttribute for redundant namespace definition. This could be useful only if the contract (interface) namespace will not apply to all service implementations. ServiceBehaviorAttribute should be used for many other r ...Show All
Shane Lile &#91;MSFT&#93; Bug: Typeparams in <see ...> tags...
When documenting code like public interface Interface<T> { [...] } /// <summary> /// This implements a <see cref="Interface<TSomeType>"/>. /// </summary> /// <typeparam name="TSomeType">Some fancy type</typeparam> public class Demo<TSomeType> : Interface<TSomeType> { } the above exmaple, intellisense does correctly display the TSomeType as type argument for the Interface." This implements a Interface<TSomeType>. " If you compile this with Sandcastle, the type argument in every <see ...> tag reverts back to the label used in the declaration of the referenced element itself: " This implements a Interface<T>. " Thi ...Show All
CirdanCelebrindal Block vba code..
Hi, In access is there a way to block user access to vba code like when he press alt+f11 Thanks I'm not sure what your question has to do with VSTO. Access to VBA can be completely disabled for each Office Application by using Group Policy Object settings. ...Show All
bluedash Excel Cell Format Behavior
Hi all!! Me one more time... Well I haven't see before this behavior, I have an Excel sheet that recives data from a Database, of course with VSTO 2005, some of this data are Excel's formulas, well if the cell is formated as text it don't uses the formula and no calc is performed, but if the cell is formatted as general it works well, the question here is: I'm using C# with an Excel SmartDoc, when I put the database value on the cell I'm changing the NumberFormat property to "General", but when I review the cell's format it has no change... Someone has any idea As we haven't heard anything more for a while, I'm assuming you got your code to work, and the issue is resolved. So, I'm closing this post. If ...Show All
Dipesh A. WCF can't communicate with WSUS 3.0
I've developed a WCF service to communicate with a WSUS server. Connecting locally via GetUpdateServer() works great; but when I try to communicate with a remote server, it fails. I tried to ask the WSUS group if they could help, but I don't think any of them were familiar enough with WCF...so, I'm asking for help here. This is the error I am receiving: System.Net.WebException: Unable to connect to the remote server ---> System.Net.Sockets.SocketException: No connection could be made because the target machine actively refused it at System.Net.Sockets.Socket.DoConnect(EndPoint endPointSnapshot, SocketAddress socketAddress) at System.Net.Sockets.Socket.InternalConnect(EndPoint remoteEP) at System.Net.ServicePoint.ConnectSocketIn ...Show All
Jacawa Import ICS file as AppointmentItem
I am using VSTO and I would like to import a .ics file into a new appointment item. The .ics file is actually in an attachment, but I can save that out to a temporary file without a problem. However, I can't find anything that would allow me take the .ics file and create an AppointmentItem object out of it (short of parsing it, which is out of the question!). Is there a way to do this I am using .net 2.0 (C#) and I am targeting Office12 (although it should be the same process for Office2003). Any help would be GREATLY appreciated. - Jason Outlook 2007 has its own Namespace.OpenSharedItem method to handle this. For previous versions, you have to use the semi-hack described at http://www.outlookco ...Show All
Annihil8 srssafe.ini on server
Hi, I have installed sourceSafe on a win XP machine that I use as my sourcesafe server, then I created a database in c:\vssdb. I've shared the folder (c:\vssdb) and I wrote a c# app to access the repository from a different host, but the problem I'm having is that I need to give the user who connects from a different host the right to modify the database folder . could you tell me if this is the way it should be or may be I'm missing somthing Thanks Nobl Hi Nobl, Yes, you need to give the user permission to the database folder. Thanks, -Huizhong Also see these articles for setting share permissions and locking down the scc database. http://msdn2.microsoft.com/en-us/lib ...Show All
Leander-Man Using AxSpreadsheet
I have managed to add MS Office Spreadsheet 9.0 to the toolbox and added the spreadsheet to a form but I don't know how to dimension (Dim statement in VB) the various components required to program the contents and formats of the cells and ranges etc within the spreadsheet. Hi Matt You're getting a typical "no one is responsible for this" run-around, here. The programming language folks see "Office" and their knee-jerk reaction is to sent you to the VSTO forum, although VSTO is a very specific technology. And VSTO moderators send people to the application newsgroups, even though those groups are VBA-oriented. Truth is, there really isn't one single place that teaches .NET folks how to au ...Show All
SteveAdams What's equivalent in WPF for "Application.Restart()" in WindowsForms?
Application.Curent object doesn't contain such method. Any suggestions Thanks As it turns out, Application.Restart() is quite hard to implement properly, as evidenced by using Reflector to inspect the WinForms implementation and discovering that it isn't actually implemented properly there, for a start. It completely ignores command line escaping when creating the command line to start the new process with. To demonstrate this, you can use some very short code just to show command args and perform a restart: static void Main(string[] args) { Console.WriteLine("Restart Tester"); Console.WriteLine("command line: " + Environment.CommandLine); Console.WriteLine ...Show All
Marcin Ksi&#261;&#380;ek Sandcastle August CTP - no indexes for .HXS file?
Hello All, I have been just trying out the Sandcastle August CTP. For some reason the compiled .HXS files does not appear to have any indexes. If I view the .HXS file using the H2Viewer - available at http://www.helpware.net/mshelp2/h2viewer.htm there appear to be no indexes. Even if I integrate the help into Visual Studio 2005 there are no indexes for my assembly. Has anyone checked that they are getting indexes when they are generating the .HXS files using the August CTP. I was getting them when I was using the July CTP. Mike Hello All, I have just looked at a .HXS file I produced with the July CTP using the H2Viewer and it has both DefaultKeywordindex and DefaultAssociativeIndex indexes pr ...Show All
rwbogosian CreateDatabase() -- System.Reflection.TargetInvocationException was unhandled
Anyone got any ideas as to what might be causing this at System.RuntimeMethodHandle._InvokeConstructor(Object[] args, SignatureStruct& signature, IntPtr declaringType) at System.RuntimeMethodHandle.InvokeConstructor(Object[] args, SignatureStruct signature, RuntimeTypeHandle declaringType) at System.Reflection.RuntimeConstructorInfo.Invoke(BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture) at System.RuntimeType.CreateInstanceImpl(BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes) at System.Activator.CreateInstance(Type type, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes) at S ...Show All
Andrej Burger Next Orcas CTP
Couple of questions: 1) When will the next Orcas CTP be out 2) Will it finally have LINQ to Entities, database-to-model wizard, and designer support (like I can get right now with the August CTP of ADO.NET vNext) 3) Please, please, PLEASE tell me I won't have to download a gargantuan Virtual PC image to write code on an OS that I _never_ target (Win2k3) So, any more notion as to when a combinination of the May CTP of LINQ and ADO.NET vNext will be available :) The problem I have right now is that when I install the LINQ MAY CTP, it completely hoses Visual Studio's intellisense, making working in non-LINQ projects a huge pain. I just wanted to comment on the October ADO.NET release (in agreement with Kevin). I tryed the ...Show All
_joe_ Debugging ASP.NET code not functioning properly
Thanks in advance to anyone willing to help me out. I am working on a ASP.NET website that I developed a while back, and have been maintaining for a while now. It was originally written using the .NET 1.1 framework in VS2003. I recently upgraded to VS2005 and .NET 2.0, and ever since then, I have been unable to properly debug my project. Here is what happens: After I make changes to my source code, I select "Start Debugging", or hit F5. The application begins, and IE opens with my website. However, none of the changes I have made get recognized; but I can see that they are as they should be in the actual code. Also, when I set a break point and step through the code (F10 or F11), the yellow debug arrow does not follow the c ...Show All
Andrew Mercer How to define a readonly Property in Contract?
Hi, I have a contract as below: [ServiceContract] public interface ITest { bool EnablePasswordReset {get;} ......... } The class "Test" is a service and implement the ITest, when I call Test.EnablePasswordReset it will throw exception: Method get_EnablePasswordReset is not supported on this proxy. this can happen if the method is not marked with OperationContractorAttribute or if the interface type is not marked with ServiceContractorAttribute. How to resolve the problem Thanks, Zhihao Exposing properties as [OperationContract] "methods" is not supported by WCF, use a real method instead. KjellSJ Except using a real method ins ...Show All
