D_W's Q&A profile
Visual Studio Tools for Office vsto - .Net framework 2 security - publisher certificate as avidance
Hello, I cannot find the way to implement certificate as security for my vsto word application. how can i do that references thanks Hilla i will make myself more clear - i need a security mothod that i can set once on installation - and then be able to use on vsto documents which are not present during this initial installation. (the dll's of the documents are not present when setting the security ). so as far as i could see publisher certificate is my only option. please correct me if i am wrong. so i tried creating a test certifiace using "makecert" and binding it to the dll using "signcode" - which opens a wizard. the binding seemed to be fine + i set ...Show All
.NET Development Regex problems
Hi all, I'm having problems with Regex, or more accurately trying to find the right expression to use. Basically I've opened up a text file, and I'm reading in the lines, and at a certain point I need to get a certain part of the line. the line I'm trying to read is: Color [Lime] Reading the line is no problem, but what I want to do is extract the word between the brackets(there are two different lines in the file that I want to read) so that I can assign it to a textbox color. I've tried some different expressions like "Color [(.* )]" and "/\Color \[(.* )\]" which have failed miserably. Does anyone have any suggestions The code I have at the moment is Regex *regex = new Regex(S"Color [(.* )]"); St ...Show All
.NET Development WebClient.UploadData: interpret the response
I'm using the WebClient class to post a XMLDocument to an aspx page. I will encounter situations where this will be done for a great number of XMLDocuments... I loop a number of XMLDocuments and post each of them to the aspx page. What I need is to implement code to handle the possibility that the aspx page might not be able to handle all the data. For example, the web server might go down. Here's my code to post the xml: public static void PostXmlToUpdateService( XmlDocument d) { XmlDocument doc = d; XmlElement rot = doc.DocumentElement; rot.SetAttribute( "topicmap" , ConfigurationManager .AppSettings[ "topicmap" ]); Byte [] byteData = Encoding .UTF8.GetBytes(doc.OuterXml); WebClient wc = new W ...Show All
Visual FoxPro Data deleted with ZAP
Hi every body How can I recover data from a tabla that has been deleted with ZAP. Thanks a lot Hey - I tried that KB article on a foxpro 7.0 table and it didn't work. It restored the correct number of records, but they were filled with garbage. I noticed that the KB article is for foxpro 3.0 and earlier, which might be why. ...Show All
Game Technologies: DirectX, XNA, XACT, etc. kW X-porter is updated for 3ds Max 9
I have finally had time to build and test the kW X-porter plug-in to export .X files from 3ds Max 9. This exporter does better than the DirectX SDK exporter (like, it actually does multiple animations), and has a few more bells and whistles than the PandaSoft exporter. Also, with 3ds max 9, the stock IGame.dll file is not overwritten, as the right version is included from Autodesk. http://www.mindcontrol.org/~hplus/graphics/kwxport.html Note: most users claim kW works fine for them, and some users get crashes. I can look at the crashes and fix them if I get a copy of the .max file. The e-mail for questions is found in the installed documentation. I updated the exporter for Max 8 and Max 9 to fix the problem where nothing was export ...Show All
.NET Development VB.Net]How to draw an image with Graphics object on an MDI form
I have a problem that when I draw an image, a string, a rectangle, etc. My form cannot be an MDI form. How can I draw on an MDI form directly. I tried somthing like: Dim g As Graphics g = Me .CreateGraphics g.DrawString("hello", Me .Font, Brushes.Blue, 100, 100) Please help me. I'm using VB.Net 2003, Framework 1.1 Eslam, At first glance I thought the problem you are experiencing had nothing to do with being or not being an MDI form, but rather when you are calling the graphics method, as it needs to be called in the context of a paint event (an event containing painteventargs) such as: Private Sub Form2_Paint( ByVal sender As Object , ByVal e As System ...Show All
SQL Server MDX Query returning top levels of dimension hierarchy
Hi, I use AS2000 which contains the cubes and dimensions. I issue a MDX query using ADOMD and then bind the results to and Asp.Net data grid. When i run the MDX query in the query editor it displays correct results. but when i execute the MDX query in the program it also return the top levels of the dimension hierarchy. I only want a subset (lower level in the hierarchy) to be returned. Here are the details: In our cube we have dimension Region_Country_RU. The hierarchy is as follows. Region(top),Country(Middle), and Reporting Unit(Lowest). The user wants to see Country info by selecting countries as DK,GB,US. This is the query to execute. In MDX query analyzer it gives proper output. SELECT NON EMPTY {{[Meas ...Show All
SQL Server Deploy/edit reports in sharepoint integrated mode
Hi, I'm working with the Dec CTP of SQL 2005 SP2 and the associated Sharepoint addin. I've been able to get a report created in VS2005 and manually uploaded to the Document Library holding reports, and the report works when I open it (using an internal datasource, not shared). My first problem is I can't get VS2005 to deploy datasources or reports to my doc library. I have configured TargetDataSourceFolder http://server/site/doclib TargetReportFolder http://server/site/doclib TargetServerURL http://server/ When I try to deploy my Shared Data Source, it asks me to login, and will not accept my credentials (I am farm administrator, and site collection administrator, and local administrator, and a site owner) Secondly, for ...Show All
Windows Forms Help pls: DataSet...and TextBoxes, Navigator and BindingSource
Hate to submit yet another qustion on this, but no matter what I do, nothing seems to work: This is VC++ 2005 Express with Net V2.0 on Windows2K SP4. Note that using a MySqlDataReader works; the records are read from the MySql server. Just haven't seen how to use a DataSet with a DataReader. I am trying to fill a DataGridView from a MySql Database. The code is: -----Code start Xda = gcnew MySqlDataAdapter("select * from Source", XConn); XBlder=gcnew MySqlCommandBuilder(Xda); Xda->Fill(Xds, "Source"); //"Soure" parameter absemce makes no difference. ------Code emd XConn is the connection object, and is verified as open at the start of this code. Xda is the DataAdapter; Xds is the DataSet supplied as a call parameter; XBlder is a Comma ...Show All
Software Development for Windows Vista Multi-valued activity parameters?
What is the best (only ) way to implement a multi-valued activity parameter ...as a string of delimited values or XML Is there a better approach Is something like the following possible <ns0:ListItem x:Name="ListItem_942c79b7_5a65_4fad_affb_9cd0e362cd84_4" ID="4"> <![CDATA[ "0" "ID" "Counter" "4" "1" "Created" "DateTime" "9/9/2003 10:34:55 AM" "2" "Author" "String" "Administrator" "3" "Modified" "DateTime" "9/9/2003 10:34:55 AM"]]> </ns0:ListItem> Or conversely, given the above machine-generated XML, is it a valid XOML file (that can be loaded with the default WF loader) What happens to the embedded element text (i.e. the CDATA) Will it vali ...Show All
Visual C++ Problem : Change view
Hi all, I am creating an application which is splitted into 2 view. (0,0) pane I am using to show a TreeView derived from CTreeView whereas (0,1) pane is used to represent the details fo that tree. I am using the following function to change the view. BOOL CSplitter::ReplaceView(int row, int col,CRuntimeClass * pViewClass,SIZE size) { CCreateContext context; BOOL bSetActive; if ((GetPane(row,col)->IsKindOf(pViewClass))==TRUE) return FALSE; CDocument * pDoc= ((CView *)GetPane(row,col))->GetDocument(); CView * pActiveView=GetParentFrame()->GetActiveView(); if (pActiveView==NULL || pActiveView==GetPane(row,col)) bSetActive=TRUE; else bSetActive=FALSE; pDoc->m_bAutoDelete=FALSE; ((CView * ...Show All
Visual Studio 2008 (Pre-release) DrawingGroups in Sept .NET 3.0 CTS
I have a WPF app that runs fine in previous CTSs. I just set up a new machine, and I installed the latest .NET 3.0 tools and SDK. A few minor things broke but were easily worked around. However, I don't understand this error at all: {"Cannot add content of type 'System.Windows.Media.GeometryDrawing' to an object of type 'System.Windows.Media.DrawingCollection'. Error at object 'System.Windows.Media.GeometryDrawing' in markup file 'xxxx;component/ui/Resources/Icons.xaml' Line 442 Position 8."} The relevant XAML: <DrawingBrush x:Key="ZoomInIconHover"> <DrawingBrush.Drawing> <DrawingGroup> <DrawingGroup.Children> <GeometryDrawing Pen="{StaticResource OrbIconBorderPe ...Show All
Visual Basic daylight.start
I need to get the start and end dates for daylight savings time throughout the world. I can use daylight.start and daylight.nd to get my local dates. From what I found out is that these routines use timezone.xxx which is normally timezone.local. Does anyone know how I can change timezone.local to a differant country within basic or another way I can get these dates Thanks ttfo wrote: I need to get the start and end dates for daylight savings time throughout the world. I can use daylight.start and daylight.nd to get my local dates. From what I found out is that these routines use timezone.xxx which is normally timezone.local. Does anyone know how I can change timezone.loc ...Show All
SQL Server Problems with date formats
The date fromat in my country (Australia) is DMY. It seems to be quite difficult to prevent the month and day being swapped around. I had a case recently where we generating a list of dates to be presented in the report server UI (User Interface) as a list box for a parameter selection. We fixed the problem in the data set (on the data tab) by using "SET DateFormat DMY" only to find that the month and day were still swapped around in the UI list box. If this was just a presentation issue we could live with it but it turned out that the value read into the parameter was incorrect (the day and month were actually swapped). To fix the problem, we had to chnage the data type to VarChar() in the data set query, using Convert() to force ...Show All
Windows Forms Strange form behaviour
Hello, i've got app with splash and main form. I've got Activate(); method call in main form OnLoad event handler, to bring the form to the front and to get focused. The problem is that sometimes it works fine, sometimes main form stays in the background behind the other windows and it's not focused, only the taskbar starts to blink. Do you have some explanation for this form behaviour, please Am i doing something wrong, please No, it's not. I'm including source code (copied from somewhere) using System; using System.Runtime.InteropServices; using System.Windows.Forms; using System.Diagnostics; using System.Reflection; namespace CDScan2 { static class Program { /// <summary> ...Show All
