papiens's Q&A profile
Windows Live Developer Forums Drive To / Drive From in Pushpin Menu
I was wondering if anyone knows the javascript code to add a link for "Drive To" and "Drive From" into a pushpin menu Thanks in advance! Caleb T - MSFT wrote: In the description field for the pushpin, add your HTML to show a Drive To and Drive From link. Each link fires an event. That event gets the LatLong of the pushpin and stores it as a global variable. Then, when the user requests a route, the two globals (start and end) are passed to GetRoute(). I certainly thought about this but assumed there was a more generic way to add the actions to all pins. I have spotted the: <div class="ero-actions"> <ul></ul> </div> in the default pushpin menu / ball ...Show All
Visual Studio Tools for Office VSTO 2005 SE Deployment Problem
Hi, I am creating a Excel 2007 VSTO COM Add-In using VSTO 2005 SE . It runs perfectly fine when I build it and run the in development computer having VS 2005 . However, when I try to install the setup.exe or .msi file for the same addin in the client machine or Virtual PC having the following configuration: 1. VSTO Runtime 2. Office 2007 3. .NET 2.0 Framework it does not seems to load . I also did caspol settings to make it Fully Trusted . I get the following error " Not Loaded. A runtime error occurred during the loading of the COM Add-in ." Can someone please help me on this Thanks in advance How do I get teh PIA for Office 2007 I checked it in the Disabled Application Add-in Section b ...Show All
Visual Studio 2008 (Pre-release) Quick Binding question....
This will hopefully be a very easy question... In the below example, the TextBox always displays the correct, bound, value from the dataprovider. But "MyControl" always displays the FallbackValue ("test") even though the binding expression is identical. I'm a bit confused as to why this should be <StackPanel DataContext="{Binding Source={StaticResource BTTC}}"> <TextBox Text="{Binding Mode=Default, XPath=/Root/Number, FallbackValue=test}"/> <local:MyControl x:Name="_myControl" Text="{Binding Mode=Default, XPath=/Root/Number, FallbackValue=test}"/> </StackPanel> public class MyControl : TextBox //FrameworkElement//, INotifyProperty ...Show All
SQL Server creating and scheduling job for SSIS
Hi All I want to create and schedule job for my SSIS packages. But I have no idea how to do that. Hi All SSIS packages works fine in BIDS but when we started testing on our Dev server, we are unable to run the SSIS. Error:System.Data.OleDb.OleDbExecption:ORA:01017:invalid username/password logn denied............... we are unable to connect to Oracle source. Do we again need to specify the connection managers. ...Show All
Visual Studio Express Editions DataGridView1.DataSource
i would like to get number of rows of filtered dataview, but i always get number rows of data table that i assign to data view. Dim dv As New DataView dv.Table = ds.Tables( "group" ) dv.RowFilter = "PO_NO = " & "'" & CboPO.Text & "'" DataGridView1.DataSource = dv below line will have same row number as in the filter table (if the table contains 5 rows and the filter contains 1 row, below code will result 1) MsgBox(DataGridView1.Rows.Count) below line will result 5 (same number as the table rows instead of 1 as the result of filter of dataview) Dim dvg As New DataView dvg = DataGridView1.DataSource MsgBox(dvg.Table.Rows.Count) Thank you. ...Show All
Smart Device Development Application terminated unexpectedly, and no any message
Hello I'm creating an application on Windows Mobile 5 using c#. This application uses the WebBrowser control to show a specific website. The problem that i am having occurs when the app runs on the device. (Motorola Q). For some strange reason the application shuts down as soon as it gets to the line : this.webBrowser1 = new System.Windows.Forms.WebBrowser(); which is in the InitializeComponent() method. It does this without an exception. When i connect the device and debug from VS.net 2005. The app shut off and i get a cannot connect to this device message. Hi all~ I wrote an application on Pocket PC 2003 SE and .NET Compact Framework 2.0 (with SP1). This application will consume a Web Service ...Show All
Visual Studio Express Editions Errors in VB Express when installed on a HDD and files saved to a network drive.
I'm hoping someone here can help me with this problem(s). I am teaching a high school Basic Programming class and we have changed over to Visual Basic Express 2005 Ed. The program has been installed on the computers hard drives. The hard drives are cleared of all student saved files upon logging out, therefore students must save their files to their network drive. The following is a list of problems that do not occur when the program is first created and run but do appear once the student "File, Save All" End does not work and displays an error picturebox.imagelocation="H:\bla bla bla\picture.jpg" will sometimes show the picture and other times show a broken image icon. When I say sometimes does and sometim ...Show All
SQL Server 2Gb Access Database became nearly 4Gb migrated to SQL Server Express - why?
I have just installed SQL Server Express 2005 to get around the 2Gb database size limits under Access 2003. My simple 2Gb Access database (simple meaning only 10 tables with 2-10 fields each, vast majority of the data in one of them and mainly Long Integers) became nearly 4Gb when migrated using SSMA - not great when the SQL Server Express database limit is 4Gb. Shrinking makes no difference. Can anyone suggest why in general a SQL Server Express database would be nearly twice the size as its Access equivalent. Are there some useful tricks or techniques to reduce the apparently massive overhead hi, inspect your "string" based columns to see how many of them are now nvarchar (National chars, DBCS, w ...Show All
SQL Server Writing huge files from CLR
Hi Coming straight to the problem - I need to write text files of the size more than 1GB! First thought of doing this with BCP but then fetching data from stored proc was taking too long (more than one hour) and so BCP did not seem to be the right option as we have less flexiblity in terms - handling errors, knowing the status as to what point the writing has been complete etc. Most importantly getting such a huge amount of data did not seem to be a one time job! So I am now thinking about writing a CLR procedure which fetches smaller amount of data at a time and writing to file. Something like - open connection, get data, close connection, write to file and continue in cycles of this till whole file is written. Does this makes sense ...Show All
Smart Device Development Can WMP 10 on WM 5.0 really do streaming?
I am needing to create a streaming application on Windows Mobile 5.0. My first tests have been to even see if WMP10 can really do streaming audio. I've tried an ASX, mp3, wmv file all from a remote server, as well as a streaming mp3 feed and get the same dialog saying "Cannot play this file. The file is either corrupted or the player...blah blah blah". So can WMP really do streaming at all They work fine on the standard WMP on my PC. Thank you very much. I appreciate it. I've done some more snooping around and the error message seems much more of a generic message for most any problem WMP has with pulling in a stream. I've put up a test .mp3 file, typed in the URL in winamp and WMP ...Show All
Visual Studio Tools for Office get the selected xpath
i would like to get the xpath or the path to a selected cell in tables or selected columns and save the xpath for later use let say i have table 1 table 2 and table 3 i would like get the xpath of the last column of all the tables so that i can refer to these xpath and extract the informations of the last columns of all the 3 tables in 10 docx documents. is there a sample to do so i should be able to do so in VSTO 2005 SE right Whether you use VSTO or not in this case does not matter, as there is no specific feature in VSTO that targets XML support in Office. it sounds like you'll want to come up with your own algorithm for inferring the xpath. This could be very tricky or easy, depending on the complexity of your documents and the ...Show All
Visual Studio 2008 (Pre-release) Round only 2 edges of border
Hi! Is there any way to round only 2 of 4 edges of border I can only think of one way, and it seems like a lot of work. Let's say you want the rounded edges to be on the top, with a black border color. You could put two Borders in a grid cell, so that they are on top of each other in the z-order. Set the BorderBrush of one Border to a LinearGradientBrush which draws from Black to Transparent, going from top to bottom. The other Border's BorderBrush goes from Black to Transparent, but the gradient goes from bottom to top. Set the first Border's CornerRadius to some non-zero value. If you get it just right, it should look like one border because the two gradients would blend together at the just right place ...Show All
Visual Studio Express Editions Adding Microsoft Chart Control to VB Express
Hi, I'm trying to add Microsoft Chart Control 6.0 to VB Express edition. When I click Projects|Add Reference|COM I can't see it there. I've tried adding Microsoft Graph 11 and looking for it in the Toolbox|Choose Options|COM menu, but I can't see it there either. Does anyone know if this function is left out of the Express edition Or is there another way to get to it Thanks Andy I just wanted to say that you so much Andy for your reply. I am taking a VB class and for some reason did not have this control with my orginal vb installation and you really saved me. Now I can turn in my assignment. Thanks so much! ...Show All
.NET Development OleDbCommand.Update method bug - parameter values overlap
Here's a weird one I haven't been able to figure out. I have a DataSet with several new rows that I need to insert into my Access database. I have a query in access called 'insNewUser' that takes a single parameter -- 'UserName'. My DataAdapter fills the DataSet with no problem. If I add a single new row to the DataSet and then call my DataAdapter's Update() command, the row gets added without a problem. If, however, I add 2 new rows to the DataSet and call the Update() command, the first row gets inserted properly, but the second row contains "left-over" text from the first row! For example, if I added two new rows with the values: 1) "UsuallyPrettyKnowledgeable" 2) "Stumped" my DataAdapter would ins ...Show All
SQL Server Failed Connected to Sql 2005 Enterprise Edition
Hi, We have a Sql 2005 server. It was setup by out network administrators who do not know much about sql server. It's running on Mixed Mode (Sql Server & Windows Authentication Mode). I have been able to connect to it use Integrated Security. However, I have not been able to connect to it using an username and a password. I have tried with sql accounts and windows accounts. Out of frustration, I used sql administrator account and windows domain administrator accounts. I also tried using the account the sql server is running on. But each and every time, I failed and received the following error message: Login failed for user '<<User Name>>'. The user is not associated with a trusted SQL Server connection. I have a ...Show All
