Answer Questions
Saroj K. Nanda t4 in a custom/stand alone tool
Hi, I don't really know too much about the DSL tools but I was just wondering if the t4 template engine could be used and distributed with a custom/stand alone tool eg. Can this actually be done, are there any dependencies that would restrict this, what are the license terms If not, does anyone know of any similar template engines (open source or commercial) Thanks, Wade. Thanks for the info. Wade, In case you are interested, there is an implementation of a text templating host available at http://www.gotdotnet.com/Workspaces/Workspace.aspx id=dae43a90-7893-493c-804a-e1f7537732c0 . This is more complete than the implementation in the DSL documentation, and is d ...Show All
John.Doe Add Click event to New Mail button
I'm using VSTO2005SE and would like to add my own event handler to the New Email button on the Standard toolbar. The button is of typ msoControlSplitButtonPopup, so it cant be casted to CommandBarButton. If I cast it to CommandBarControl I cant add my own event handler to the Click event. Reflection doesn't allow me to add event handlers either since it's a COM object. How can I add my own event handler to the New Mail button (id 1874) Please please help! // Johan Hi Johan. There is no way that I am aware of to add your own event handler to Outlook's New Email button. Instead, you should try using the NewInspector event. Thanks. -Brent Thanks for your reply. The NewInspector event fires to late for what ...Show All
Micror How to convert an Icon object to ImageSource?
How can I convert an Icon object to an ImageSource object. I want to set the Icon of a window, but the Window's Icon property needs an ImageSource object. Thanks! Hi, how about the reverse by this i mean converting an WPF ImageSource object to a System.Drawing.Icon object. A scenario where this is used is if i want to display a system tray icon using the WPF app icon with System.Windows.Forms.NotifyIcon object, without duplicating the resource. thanks, nick Did you declare the icon file in your project as a Resource The pack://application URIs can only reference files known at build time i.e. declared in the project as Resource or Content. Not EmbeddedResource, mind y ...Show All
Handerson Is it possible to specify Click events in generic.xaml resource file?
Currently I get the error when specifying a click event in my generic.xaml Error 311 'ResourceDictionary' root element requires a x:Class attribute to support event handlers in the XAML file. Either remove the event handler for the Click event, or add a x:Class attribute to the root element. If I add the x:Class="X5Client.DynamicWindow1" attribute specifying the class that contains the event, I get a different error. Error 310 Partial declarations of 'X5Client.DynamicWindow1' must not specify different base classes. Rod, If you can live with having your event handling method in a code-behind file (not in the XAML), then try the technique shown here: http://www.infusionblogs.com/ ...Show All
ti_m video example not working
public Scene1() { this.InitializeComponent(); MediaPlayer player = new MediaPlayer(); player.Open(new Uri("pack://application:,,/rock.wmv")); VideoDrawing aVideoDrawing = new VideoDrawing(); aVideoDrawing.Rect = new Rect(100, 100, 100, 100); aVideoDrawing.Player = player; player.Play(); I took this from the msdn page but changed the Uri as I had added a .wmv to the project. All I get is a blank screen. Any help would be great - thanks thx Guilaume but that is not the solution as I have mp11 installed and if I use mediaelement inside the xaml instead of using c# then it works fine but not with the code as it stands. any other ideas would be appreciated - thanks Hi, I don' ...Show All
White Hawk Creating a sideways tab control
I want to create a tab control where the tabs go down the left side of the window and the text is sideways. To see an example, open a PDF file. Here's a link if you don't have one: http://www.adobe.com/digitalimag/pdfs/phscs2it_bwconv.pdf Notice how the Pages and Bookmarks tabs go sidesays down the left side of the screen. What is the easiest way to do this I've tried using Expression Blend to change either the layout transformation or render transformation. With this approach, I can get the tabs growing up from the bottom, but I want them coming down from the top. Also, any content displayed inside of the tab panel are also sideways, so I'd have to move them all back. Is there an easier way to do this ...Show All
A.Issa How to disable the Parameter prompt for Crystal Report using VB.Net
I'm having a problem whereby I can't disable the parameter prompting in VB.Net with the following codes:- Dim crPDV As ParameterDiscreteValue Dim crPFD As ParameterFieldDefinitions Dim crPFL As ParameterFieldDefinition Dim crPV As ParameterValues crPFD = CR.DataDefinition.ParameterFields crPFL = crPFD.Item("paramterName") crPV = crPFL.CurrentValues crPDV = New CrystalDecisions.Shared.ParameterDiscreteValue crPDV.Value = valueToPass crPV.Add(crPDV) crPFL.ApplyCurrentValues(crPV) CrystalReportViewer1.ReportSource = Application.StartupPath & "\TheReport.rpt" CrystalReportViewer1.Show() Any error with the above codes OR do i need to add any additional code(s) that able for me to pass the parameter value direc ...Show All
MA2005 Can't get rid of toolbar
I have been working on an add-in for Word 2003 using VSTO. For some reason when I open Word while I am not debugging my toolbar that is created in the startup of the add-in is still being created. I have tried to remove the toolbar and save the normal.dot and that has had no effect. I have checked the options and my add-in is not in the list of deployed add-ins. Does anyone know how I can stop Word from loading my add-in when I am not debugging You'll want to have a look at ThisApplication.CustomizationContext and how that affects CommandBars and whatnot. Also, when you add your new CommandBar, make sure you set the 'Temporary' property to TRUE ... ...Show All
pompom Embed Resource that's dynamically generated into a C# assembly
I am trying to figure out how to tweak my project's .csproj file to get it to embed a resource (a text file) that I generate dynamically (either in the BeforeBuild or BeforeResGen targets). I have tried adding the generated resource to EmbeddedResource but no joy. What's the "right" way to do this Keith, I took a brand new C# project and added this below the import at the bottom: <Target Name="beforebuild"> <CreateItem Include="foo.txt"> <Output TaskParameter="Include" ItemName="EmbeddedResource"/> </CreateItem> </Target> I then get foo.txt embedded into the main assembly. Could you check you're defining the target b ...Show All
Adam1987 ResolveAssemblyReference task failed unexpectedly
I am receiving the following error after the project, and referenced assembly projects, were converted from VS2003 to VS2005; Error 67 The "ResolveAssemblyReference" task failed unexpectedly. System.FormatException: Input string was not in a correct format. at Microsoft.Build.Shared.ExceptionHandling.RethrowUnlessFileIO(Exception e) at Microsoft.Build.Tasks.AppConfig.Load(String appConfigFile) at Microsoft.Build.Tasks.ResolveAssemblyReference.GetAssemblyRemappingsFromAppConfig() at Microsoft.Build.Tasks.ResolveAssemblyReference.Execute(FileExists fileExists, DirectoryExists directoryExists, GetDirectories getDirectories, GetAssemblyName getAssemblyName, GetAssemblyMetadata getAssemblyMetadata, GetRegistrySubKeyNames get ...Show All
Krutika Question about VSIP
Hi All, Can we track the active project in the active solution with VSIP Probably with IVsSolution Or IVsProject But I dont want to do it with Com interface. Any idea will be appreciated. TIA. Regards, Hi Ed! I was completely misunderstood and confused about those interfaces before. But now I understand. I thought every IVs... is outside of DTE automation. Silly, indeed. Thank you very much, it helps alot! Regards, Hi Gertus, Maybe, you'd like to sum up the final solution here Thanks! Hi Gertus, Check in MSDN library the IVsMonitorSelection.GetCurrentSelection method. There it gives out parameter IntPtr hierPtr from your current open file. You should provide the container for that out varia ...Show All
Dumondo Setup.exe Error in VS 2005
I'm having problems installing Visual Studio 2005 on a system that already has VS .NET 2003 on it. I have read a number of posts here but nothing I've tried has resolved the problem. Any help would be appreciated. I've tried this install from both the MSDN CD's (2 disc set) and an ISO image on DVD. Installs from both media failed. The setup.exe installs all of the components including the Framework 2.0 and the Document Explorer successfully, but when it attempts to install the actual Visual Studio 2005 component it fails. I have performed a clean boot (XP SP2), cleaned out the users temp directory, ran "installer" and removed any reference to Visual Studio 2005, and ran the "uninstall tool" for beta's (did not find a ...Show All
moff Reserved.ReportViewerWebControl.axd browser window remains open after PDF export
Why is this blank browser window remaining open after I save an export of a PDF export Here is the entire url in the blank browser window: https://cacluster/claimscontrol2a/Reserved.ReportViewerWebControl.axd Mode=true&ReportID=944716ea708946eaace90ce3d0725872&ControlID=298bb5b5-7b3d-4fea-80dc-bbb48e4fe792&Culture=1033&UICulture=1033&ReportStack=1&OpType=Export&FileName=rptClaimsOutstanding&ContentDisposition=OnlyHtmlInline&Format=PDF Here is the web.config: < httpHandlers > < add path = " Reserved.ReportViewerWebControl.axd " verb = " * " type = " Microsoft.Reporting.WebForms.HttpHandler, Microsoft.ReportViewer.WebForms, Version=8.0.0.0, Culture=neutr ...Show All
Malmer Window Events
Hi, I would like to know which event I should use on a window to detect when the window loses focus. The LostFocus event seems to only fire if another control inside the window container recieves focus. I would like to get an event when the mouse is click outside the window, the user Alt+Tab to another window, click on the taskbar ...etc. Can anyone help me please Thank you, Jaco Thank you very much. I feel like a real dope. I should open my eyes next time :) Seems like you are looking for Window.Deactivated. ...Show All
Grant Jenkins Inherited Custom Image Control...
I've been trying all sorts of methods, searching Google, this forum, MSDN, etc. for successfully creating and using a custom Image class, inherited from the base Image class... public class SidebarIcon : Image { private string iconTitle_x; private string iconPath_x; public string iconTitle { get { return iconTitle_x; } set { iconTitle_x = value; } } ... } Now, going from there, or taking a totally different approach from making this simple custom control... I want to use it in XAML just like I can the Image class, but with those added properties, iconTitle, and iconPath. I've seen and tried samples all over like, <cc:SidebarIcon/>, etc. But ...Show All
