Answer Questions
Freddo Local Report - Adding Datasources Programmatically
Using the LocalReport object you can add a datasource: LocalReport.DataSources.Add("myDataTable") I'd like to add DataSources to my report this way at runtime. This is so my business objects can run out the the database, grab data, scrub it, and then pass the dataset to the Local Report. I can see how to add the datasource, what I don't understand is how to reference the datasource in my report. Take a textbox, the value property is usually set this way: =Fields!myDataField I don't know how to bind data this way out of dynamically added datasources (datatables). I tried: =Datasources(0)!Fields!myDataField That doesn't work - I thought maybe datasources was an indexed collection but apparently not ...Show All
GMS0012 Compose a Transform3DGroup with another Transform3DGroup in XAML?
I have a Transform3DGroup for one model which is composed of a rotation followed by a translation. I want to define a Transform3DGroup for another model which should be transformed relative to the first model, ie it is composed of a rotation followed by a translation followed by the composite transform from the first model's Transform3DGroup. Initially I want to do with using XAML resources, eg: <Viewport3D.Resources> <Transform3DGroup x:Key="transform1"> <RotateTransform3D> <RotateTransform3D.Rotation> &n ...Show All
Dave Koehler storyboard begin from codebehind
I have a button (play button) which when pressed begins the storyboard which is all in xaml. However, I want to begin the storyboard from c# (in the .cs file) and not from a trigger in xaml. When I try to access the storyboard from c# it doesn't recognise it : storyboardname .Storyboard.begin(this); // where storyboardname is the name in the xaml code so I take out the trigger event from xaml and then try to set the StoryboardName within the Storyboard tag but seem unable to do this without generating further errors. Any help on this would be appreciated, thank you Fixed - needed to tell the handler it was a resource ...Show All
Luis Esteban Valencia MCP. Catastrophic Failure with Outlook Redemption SafeContactItem object
Hi all, My current project is an enterprise application which involves integration with outlook 2003. For this purpose I used C# and MS...NET framework 2003, outlook object model, CDO and Redemption.dll to avoid any popup. Am facing a memory leak/Catastrophic failure whenever I run these instructions of my code on the server where exchange server and outlook are installed. // iterating on some contact folder …in a loop ………………………………………………………. Outlook.ContactItem foundContact = (Outlook.ContactItem)foundContactFolder.Items[foundIndex]; SafeContactItem safeFirmContact = new Redemption.SafeContactItem(); safeFirmContact.Item = foundContact; string contactEmailAddress = safeFirmContact.Email1Address; // ge ...Show All
Lee Cascio outlook 2007 categories property
Hi All, I'm using an application which Puts a string into the categories property of the outlook mail. In outlook 2003 this string value is retained in the categories property across mail forwards and replies. I noticed we access the application from outlook 2007 beta client, then while replying to a mail that category property is not retained (it becomes null). Any idea why is this happening in outlook 2007 Is there any work around to solve this. Thanks in advance Thanks for the reply. Is there any other property in the outlook mailitem property which we can use to store persistent values I want to attach a string with a mail (hidden) and want it to be retained across replies and forwards. ...Show All
Buddy Funny Arithmetic result exceeded 32 bits
Have a client who generated a 382 page report to a report viewer. Once the report is rendered to the viewer a dialog pops up which states: Arithmetic result exceeded 32 bits After clicking OK to the dialog, the information is cleared from the report viewer and the same message appears in the report viewer. The report can be filtered by a unit, and the report report is generated without incident when filtered (which of course produces less pages). The problem only comes along if the report is not filtered by unit. I'm not even sure where to start looking in order to resolve this as I cannot reproduce the error in house using the client's data. Any suggestions would be greatly appreciated!! Jim ...Show All
CraigT FlowDocument text leading
Hello, any of you know how to change the leading (space between lines) of the text of a paragraph in a FlowDocument. Thanks a lot !!! Hello Lester, thanks a lot for your post, in this case I'm not refering about the space between two paragraph. I have a Paragraph and when I resize the window 2 o more text lines takes the space of the window. I want to change the space between that lines. I use LineHeight, but the problem is that the LineHeight hasn't got a negative value and the smaller value is the spacing of the font by default (that is too much space). Any idea Thanks a lot people ! change the paragraphs margin and padding to 0 ...Show All
A.Arora Soap Header in WCF
How to use Soap Headers in WCF The samples using MessageContractAttribute doesn't help to solve this. Thanks, Sangeetha Hi Scoot, I like the idea but it throws error when I try to run that sample. "Cross-thread operation not valid: Control 'txtRequest' accessed from a thread other than the thread it was created on." Regards, JDang Never mind. Thanks Here's a sample of the second method inside a Client MessageInspector. http://wcf.netfx3.com/files/folders/message_inspection/entry3783.aspx Thanks! S Scott, I have tried to follow your example and I could not be able to see th ...Show All
Likewise Get the element from a DataTemplate
Hello! I have this ListView and in each cell I have a TextBox by setting a DataTemplate. < ListView x:Name = " MyListView " ItemsSource = " {Binding} " Background = " Silver " > < ListView.Resources > < DataTemplate x:Key = " RightCellTemplate " > < TextBox Text = " {Binding Path=RIGHTNAME} " x:Name ="CellTextBox" /> </ DataTemplate > </ ListView.Resources > < ListView.View > < GridView AllowsColumnReorder = " True "> < GridViewColumn CellTemplate = " {StaticResource RightCellTemplate} " Width = " 100 " Header = " Right Name " /> </ GridView> </ ListView.View > </ ListView > How ca ...Show All
The ZMan Word 2007 IDTExtensibility2 questions
We need to do a Word 2007 version of our AddIn. A couple of questions: Where do we get the PIAs to build it with Is there anything else we need to do this We use the IDTExtensibility2 API, not VSTO. Any url with a good suggested article on porting an AddIn from Word 2003 to Word 2007 Are the PIAs always installed with Word 2007 or are they still optional thanks - dave ...Show All
TCSC Crystal Report test w/o Setup
My development environment is VS2003 installed on my machine. My application is created on a remote devleopment web sever. I created a Crystal Report and an ASPX web form with CR viewer. The report is strong typed. According to CR, I have to create an deployment project to test the report. But I am not there yet, I just new to view the report on the development web server. I copied all the required CR's Merge Modules and correct keycode in the Crystal_regwiz2003.msm. The project compiled without error. When I tried to browse the report I got "Unable to find the report in the menifest resources. Please build the project, and try again". Does anyone know how to fix the problem without using Deployment Seup project Thanks. ...Show All
Kyle McK ListBox not Displaying Feeds problems Help Please
I'v been trying to get the Listbox to Read the Feeds Listed In the ComboBox from IE 7 that lee d helped me with...this is what i have but it locks up and isnt doing what i want it to do.. Can someone help me with this...Thxs private void IE7ButtonClick( object sender, RoutedEventArgs e) { IFeedsManager manager = new FeedsManagerClass (); IFeedFolder rootFolder = ( IFeedFolder )manager.RootFolder; RssComboBox.ItemsSource = rootFolder.Feeds as IEnumerable ; RssComboBox.DisplayMemberPath = "Name" ; //Below here locks up the program string pathToExport = RssComboBox.SelectedIndex.ToString(); pathToExport = ListBox.ItemsSource.ToString(); Queue< IFeedFolder > queue = new ...Show All
Elham Sarikhani Unable to populate WPF Extender Control correctly....
I have populated a observableCollection with some information... I have checked this information while debugging and it is populated correctly. Then in the WPF application I have created an extender control and bound it to the observable collection: <Expander Width="Auto" Height="Auto" x:Name="Expander" Content="{Binding PhotoSets, Mode=Default, Source={StaticResource PhotoSetCollectionDS}}" ContentTemplate="{DynamicResource PhotoSetsTemplate1}" Header="Sets"/> The PhotoSetsTemplate1 is defined as follows: <DataTemplate x:Key="PhotoSetsTemplate"> <ListBox Name="PhotoSetsListBox"> <ListBox.ItemsPanel> <ItemsPanelTemp ...Show All
Kirti Mistry Does anyone know how to use the OlkInfoBar to display a message from VSTO code?
Does anyone know how to use the OlkInfoBar to display a message from VSTO code The OlkInfoBar only has two properties (MouseIcon and MousePointer) and raises only Mouse events. There is no Caption or Text property. How is it intended to be used Some sample code would be appreciated. Unfortunately you can’t set the text on the OlkInfoBar control. The control is designed only to be a place holder for the Outlook information bar, which is not directly extensible. The only way to add text to the InfoBar programmatically is by setting the FlagRequest property for MailItem, and even then it probably won’t work the way you are expecting. If you are working with another item, there is no way to set any text on the info bar. ...Show All
cmwith Stepping through code
I can 't see how to step through code a line at a time! In the debug menu I can only see F5 Continue & F10 Step Over Any Ideas Have you tried pressing F11 (the default shortcut for Step Through) just to see if it works Maybe the menu item was just somehow inadvertantly removed. ...Show All
