Answer Questions
eric_from_nj Creating positioned elements with databinding
Hi, I need to create some positioned content of a Canvas control using databinding to a collection of business objects containing absolute coordinates of every element. I tried with ItemsControl bute the Canvas.Top and Canvas.Left properies cannot be assigned and the elements appear always stacked one under the others. Thankyou in advance Andrea Boschin hi, I've tried the approach you described but the result is that the elements are positioned at 0,0 in the parent canvas. here is the code < Window x:Class = " WindowsApplication1.Window3 " xmlns = http://schemas.microsoft.com/winfx/2006/xaml/presentation xmlns:x = http://schemas.microsoft.com/winfx/2006/xaml xmlns:domain = " clr- ...Show All
Rush hour Debugging WCF server on Vista RC1 (x64)
I'm having trouble debugging a WCF server on Vista. It seems that you are not allowed to bind to an adress without elevated privileges, this I fixed (when running *without* a debugger) using e.g http://mark.michaelis.net/Blog/WindowsCommunicationFoundationWithWindowsVistaAndUAC.aspx that is adding a manifest to exe requesting elevated privileges. The problem is, it seems this does not work under the Visual C# (Express) debugger (even though there is a exename.vshost.exe.manifest) with the correct content. I do not get a dialog asking to OK elevated privileges, it just behaves like the the manifest is not there ! ! How do I fix this The thing is, my account has admin privileges, I just don't have them by default. Is this really the ...Show All
stuart54321 Deploying Outlook Add-In (after following tutorial Part 2) - fixed!
First off, it's worth saying that VSTO 2005 is excellent both as a product and as supported by all of the great articles and samples. Office has become a very important Hosting environment for enterprise applications and VSTO (and the community) is exactly what we need. I just finally got my Outlook Add-In to work with one-click deployment, but I needed to customize the SetSecurity project referenced in the Part 2 Walk-thru. I added a "trustTargetDir" parameter and when "trustTargetDir" is true, then the AddSecurityPolicy method uses "FullTrust" o the targetDir. In my case, I'm using Redemption.dll because I need to manipulate MAPI Extended Headers, and even though I set the Interop.Redemption.dll als ...Show All
Georgedinu Debug doesn't break in some places.
The section of code in the middle fails to catch any breakpoints. Execution continues upon stepping into the if(ThisMsg... line LRESULT CALLBACK ProcessMessage(UINT nCode, WPARAM wParam, LPARAM lParam) { // Don't process the wrong messages. if (nCode < 0) { CallNextHookEx(hMsgHook, nCode, wParam, lParam); return 0; } // Get the message information. LPMSG ThisMsg = (LPMSG)lParam; *************************** Breakpoint not hit section ********************************* if (ThisMsg->message == WM_COMMAND) { msg = ThisMsg->message; hwn = ( int )ThisMsg->hwnd; lp = ( int )ThisMsg->lParam; wp = ( int )ThisMsg->wParam; // CopyMemory((void*)Passe ...Show All
rolf cerff reporting services report viewer control
I have a form with a report viewer control. Everything works as expected except for when you click the print button in the report veiwer. The print dialog comes up, but then you have to click the print button twice, or click on the dialog somewhere and back on the button in order to print. It's like the dialog doesn't have the focus when it initially opens. When it does open title bar looks the same as any other window with the focus. Anyone else notice this behavior I should add I am using SQL Server 2005 and VS Pro 2005 I have found the following thread regarding this problem. I will have to read all of them to find out if there is a solution. http://forums ...Show All
Tom25 WCF and C++ integration tool.
Hi, Does anybody know about a reliable (and tested) tool for integration between WCF and C++ Thanks, Dror. You should be able to use the WCF service moniker from C++ clients. Take a look at http://msdn2.microsoft.com/en-us/library/ms733928.aspx for documentation on this. Hope this help, Andy Milligan. ...Show All
Giridhar Damodaram Generating diagrams with Sandcastle?
Is there any way to create diagrams with Sandcastle I mean like Doxygen generates DOT language and using GraphViz creates diagrams that are embedded to the generated help file. Of course I could use Doxygen, but I kind of like Sandcastles VS2005 layout better. First: Thanks for quick reply! Here is a link to diagrams Doxygen generates: http://www.stack.nl/~dimitri/doxygen/examples/diagrams/html/class_e.html Doxygen generates a DOT language description of the inheritance or collaboration of classes and then passes it to GraphViz. Those simple visualizations are of a valuable tool when bringing a new person to a project that has been in the works for some time. Wrth, ...Show All
ChecMate Drawing a Bottom Border
I want to have a bottom border which spans a single row and two columns. Is there any way to do this I tried playing around with the border object but didn't have any luck. Thanks! <Page xmlns=" http://schemas.microsoft.com/winfx/2006/xaml/presentation " xmlns:x=" http://schemas.microsoft.com/winfx/2006/xaml " > <Grid> <Grid.ColumnDefinitions> <ColumnDefinition /> <ColumnDefinition /> </Grid.ColumnDefinitions> <Grid.RowDefinitions> <RowDefinition /> <RowDefinition Height="Auto"/> </Grid.RowDefinitions> <TextBlock>Column 1</TextBlock> <TextBlock Grid.Column= ...Show All
Uli F SqlReader as datasource for ReportViewer control
Is it possible to use SqlReader as datasource for ReportViewer control Can you show me an example in C# please Here you go: http://www.sharpdeveloper.net/content/archive/2007/06/09/how-to-use-sqldatareader-plus-source-code.aspx That is probably what you are looking for. If not, let me know and I'll try to get it for you Sameer is it possible to get an example in C# Thanks There is no direct support for SqlReader. You can however wrap it in another object and implement the IEnumerable interface, and supply the IEnumerable to ReportViewer. is it possible to get an example in C# Thanks ...Show All
ayatollah LocalReport Export graph in Pdf
I use LocalReport for generate export in Excel et pdf with Framework V2.0.50727. When RDL contain graph ( bar or pie) the size of file ( render) in pdf is 16Mo. In excel is OK ( 41ko) or with no graph in pdf (89 ko) Parameter DeviceInfo is a empty string. any idea Unfortunately, Outlook and Outlook Express like to send uncompressed PDFs using the quoted-printable encoding instead of the preferred Base64. This means that some mail servers, virus scanners, etc, feel free to modify the PDF attachments. So the recipient ends up with a PDF that cannot be opened by Acrobat. Any word on when compression will be added I agree. This needs to be fi ...Show All
JimmyT7360 Using web services with xbap application
I have created an wpf browser application that relies on calling a web service. However, whenever I call the web service, I recieve a "System.Net.WebPermissions" error message. The web service is located on a different server. How do I get this to work Thank you for the help. Steve I just want to make sure I understand. Your suggestion is to add to the browser application a wcf client and create a wcf service on the same server, and the wcf service does the bridging to the remote web services. On the service side, I would add the calls to the web services that are hosted remotely as normal. Assuming this is what you meant, I just need to clarify one other item. Does the xbap consider th ...Show All
friendster WCF service cannot verify incoming message with SAML token
hi there, I have implemented an STS service using the June CTP and a WCF service/client to use the STS for authentication/authorization. I use wsHttpBinding for the communication between the client and the STS service and wsFederationHttpBinding for the communication between the client and the service. At runtime, the client can retrieve a SAML token from the STS without any problem. However, if the client try to set up a secure session with the WCF service, which is required in the wsFederationHttpBinding, the service throws up an exception "The security protocol cannot verify the incoming message". I use the WCF tracing tool and see that the SAML token is present in the message for the action "http://schemas.xmlsoap.org/ws/2005/02/ ...Show All
Jamie Thomson help needed regarding adding a contact item into outlook contact item
hi, please help me regarding how to add a contact into outlook contacts folder if I hace a vCard(.vcf) file. And also please help me how to get the list of items which are deleted over perticular period of time. We are using visual studio 2005 and visual c++ 6.0. And please suggest which platform is easier to code for outlook. looking forward for your earlist reply. Raja Pratap. dear Ian, Can you please specify the third party libraries I understand the third party libraries are for parsing the vCard files. If I understood correct, then we have alredy tried, but field by field the assignment has to be done isnt' it thank you. -- pratap > This post is not really rel ...Show All
sathish_indian How to make a window half-transparent?
Why the flowing codes is invalid for WPF window window.opacity is also How to make a window half-transparent Help me! [DllImport("User32", CharSet = CharSet.Auto)] // API call to get the current window layout private static extern int GetWindowLong(IntPtr hWnd, int Index); [DllImport("User32", CharSet = CharSet.Auto)] // API call to set the window layout private static extern int SetWindowLong(IntPtr hWnd, int Index, int Value); [DllImport("User32", CharSet = CharSet.Auto)] // API call to make the window transpairent private static extern int SetLayeredWindowAttributes(IntPtr hWnd, int clrKey, Byte bAlpha, int dwFlags); priv ...Show All
fbnts Error opening an excel file with cached data
When opening the output file of my excel project done in VS, I received this error: "Cannot deserialize cached item myProject .ThisWorkbook] cachedData." It seems that the cached data cannot be loaded with the file. I am getting the same error with VSTO 2005 and Excel 2003 while attempting to programmatically restore host controls according to the section 'Persisting Controls in the Document' at http://msdn2.microsoft.com/en-us/library/x97a5x3s.aspx . Here is a code snippet... [Microsoft.VisualStudio.Tools.Applications.Runtime. Cached ()] public DataSet dataset; private void Sheet1_Startup( object sender, System. EventArgs e) { ... if (dataset == null ) { ...Show All
