Software Development Network Logo
  • Microsoft ISV
  • IE Development
  • Visual FoxPro
  • Audio and Video
  • VS Team System
  • SharePoint Products
  • Smart Devicet
  • Visual C++
  • Windows Vista
  • .NET Development
  • Visual Basic
  • Windows Forms
  • Visual C#
  • Visual Studio
  • Game Technologies

Software Development Network >> pst_grant's Q&A profile

pst_grant

Member List

akaRickShaw
navbhan
brohans
nairB
Jayakumar A
baboori
ellen_89
Andrei Kuzmenkov
luca b
Vayse_Dev
Deeps_123
Mr_White
Prabagarane
John Oliver (UK)MSP, VSIP
sgriner
Daniel Danilin
Assaf Stone
KDiv
jrp210
Memom
Only Title

pst_grant's Q&A profile

  • Visual Studio Tools for Office Threading and Word

    Hi I'm working in a Word Document, VSTO 2005, C# I have to fill 6 tables with information that comes from a database. Since the DataGridView doesn't behave well in Word (Autosize fix DataGridView to the page, making the text too small if there's 200+ rows) i had to programatically create a Word Table and add cell by cell the contents of the Dataset. So, that process is too damn slow. I can see in my word document while every cell is filled with data :S So, the only way to make the Smart Document work for the user while it fills the 6 tables was to put that process into a thread. I thought about making a thread for each table (since the size of tables vary from one to another) and it works fine for 2 threads; word keeps runni ...Show All

  • Visual C++ Easy one, i'm sure. Appending chars.

    Hey, I'm trying to add two chars together. To make one char. I'm sure this is easy to do, but everything I have found via google refers to strings only. I've only been using C++ for a couple months, but don't worry about jargon. I've been programming for many years. What I have currently tried is the following: CC->Time and CC->DayOfWeek are both of type char[255]. I didn't think this would work, but wanted to try before creating a thread. [code] CC->ScreenText->TextureFont_DrawText(CC->Time & " " & CC->DayOfWeek, 100, float(CC->s_Height)-60, RGBA(1, 0.705f, 0, 1), UI.Tex[1]); [/code] Results in: 1>c:\users\arius\desktop\code\esoteric\production\slarty\slarty\slartyuicp.h(61) : error C2296: '&a ...Show All

  • Visual Studio About OnDocumentWindowChanged()?

    Hello everyone, It's me again . I am trying to add a new tool window in my project which have succeeded, but when i try to communicate with this new tool, i found some post here about the interaction, and tried to follow the steps provided, there is a problem here. I would like to know in the ToolWindow class, when the OnDocumentWindowChanged() is triggered, the document says " change is made in the Document Window ", but for DSL project, what change has been made to trigger this function actually Thanks a lot! Di It is fired when a document is opened, closed, or reloading and reloaded (e.g. when it's changed on disk and the user responds positively to the prompt to reload), or when the "selecti ...Show All

  • .NET Development guid type conversion for sql key compare

    I have a commerce system that uses guid type keys extensively. I cannot seem to get the right format so compare an guid with another for a select statement. For example: sqlreader record that includes a data field of type guid - Dim strGuid As String Dim guiGuid As New Guid guiGuid = myOrderReader.Item(7) - from table read item(7) is a type guid value strGuid = guiGuid.ToString Dim strOrd As String = "SELECT purchase_order_closed FROM dbo.mf_purchase_orders WHERE purchase_order_guid=" & strGuid This gives syntax error but the conversion to a string value works. How do you format the value in read field myOrderReader.Item(7) so that you can compare it in a select type statement as ab ...Show All

  • Windows Search Technologies Failed to remove the old catalog

    I uninstalled the Office 2007 beta and just installe dthe latest version from MSDN (RTM). After starting Outlook it said that it required WDS 3.0 (RTW) so I nstalled that. Now I get this in the event log: The Windows Search Service has failed to remove the old catalog. Internal error <0,0x80070003>. WDS tells me that 0 items are searched and that indexing is not running. The usual repairs don't work (start/stop the service, reboot). Any idea where these catalogs are located so that I can delete them manually There is an updated version WDS 3.01 in MS Download Center. Please use this version and reply back if you still have the problem. ...Show All

  • Visual C# How do I format a date time string input from a file?

    I know how to use DataTime.Now.ToString("format string"); But I've got a date string coming into my app and I want to format that string. My input date format is yyyymmddhhmm. I have tried to use IFormatProvider but no matter what I did, I got an "Invalid Date Format" error. string myDate = textBoxMyDate . ToString ( ). Trim ( ); IFormatProvider format = new System . Globalization . CultureInfo ( "en-US" , true ); string expectedFormat = "yyyyMMddHHmmss" ; DateTime myDateTime = DateTime . ParseExact ( myDate , expectedFormat , format , System . Globalization . DateTimeStyles . AllowWhiteSpaces ); labeld . Text = myDateTime . ToString ( ); Ca ...Show All

  • .NET Development Logical problem about Windows Service, please help!

    Hi everyone, We've built a Console Application by means of VB .Net and using Framework 2.0. Now we carry out everything inside a Windows Service application. As far as I know when a service starts OnStart() is the first method to execute. We've come across just there a serious problem; when we begin that service from Service Manager it finishes in time out because an infinite loop is waiting inside Sub() procedure. How to avoid this We understand that there is no bug or error from Framework side but it's a problem of ours (logical schema..) because, we were wondering, how to know when OnStart method finishes in order to begin do our stuff Publi Sub Onstart() .. .. Sub() 'Here calling ...Show All

  • Internet Explorer Development IE 7 and Framsets

    I am using a simple standard framset, in IE 7 the target is all off, opening each page into a new window instead of the proper frame. Is there a solution for this, I have refrences to it being an issue caused with tabing but have not yet seen a solution. Thanks Rian Edwards i am actually having the same problem. my website has been up and running flawlessly for quite sometime now. it works on just about every browser EXCEPT IE 7. why do the links open in completely new windows if you're in IE 7, you can see the problem for yourself at: http://www.ramblinsouls.com the frame code goes like this: <FRAMESET ROWS="170,*" BORDER="0" FRAMEBORDER="0" LEFTMARGIN="10" TOPMARGIN="0" MARGINWIDTH="0" MARGIN ...Show All

  • .NET Development .NET framework changes with VS2005 SP1?

    Are there any updates to the framework with the SP1 install no. the SP1 is ONLY for the Visual Studio product, not the .NET Framework. The changes are for the IDE performance/bug fixes and what not generally and has no relevance to the .NET Framework. There maybe an SP1 in the future, who knows, but will state its for the .NET Framework 2.0 ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. dxwebsetup wierdness - deployment with app

    Hi, sorry to post this in this forum, I am unsure where to post it. OK here is the thing. I have a deployment problem. I am creating a setup with my app, created in VS 2005 Pro, using C#(.NET 2.0)   This app of mine requires DirectX runtime end user files, or the SDK but really the runtime files. Now, during installation, I bundled in the dxwebsetup.exe. This executes fine.   2 main problems here already: 1) I want to silently install it without the need for user interaction, switch used to do this: /Q. When specifying this, it just seems to show then disappear instantly. I then find this next problem: 2) When running the dxwebsetup on its own (double click) or even within the app setup but without ...Show All

  • .NET Development Field2 in "Order By Field1, Field2" clause ignored

    Greetings, I use the Microsoft.Jet.OLEDB.4.0 provider in a C# app to perform a query like the following on a Microsoft Access 2002 db: SELECT Items.PartNumber AS PartNumber, Items.Type AS Type, Items.Serviceable AS Serviceable, Items.ChangeLevel AS ChangeLevel, Items.IllustrationPath AS IllustrationPath, Items.IllustrationVolume AS IllustrationVolume, ItemDescriptions.LanguageCode AS LanguageCode, ItemDescriptions.Description AS Description, Nodes.NodeID, Nodes.ItemID, Nodes.ParentNodeID, Nodes.DefaultQuantity, Nodes.Depth, Nodes.NodePath FROM Items, ItemDescriptions, Nodes WHERE Nodes.ItemID = Items.ItemID AND Nodes.ItemID = ItemDescriptions.ItemID AND Nodes.Depth < 5 ORDER BY Nodes.Depth, Nodes.NodePath Except in the orderin ...Show All

  • Visual Studio Report Paging

    Basically, I'm trying to create a dynamic Invoice PDF to print on pre-printed paper and I have everything working except paging. I'm using the local mode of reporting services in a asp.net website. I'm hiding the report viewer control and having it dynamically creating and returning an invoice pdf in a new browser. The report is basic and consists of three sections: header, body, footer . header : Invoice Info (Invoice Number, Addresses, etc.) body: A list of Invoice Items that will fit on that page. footer: Invoice Total and other static info The header and footer information is dynamic, but it's the same on every page. I created two .rdlc files: Invoice.rdlc and InvoiceItems.rdlc . The Invoice.rdlc binds to an in ...Show All

  • Visual C++ First Execution Only...

    Hi, I've been trying to tell my new program to check for a specific condition (whether it is the first execution or not), but I'm having quite a bit of trouble. In fact, it's driving me insane. I spent almost all of last night trying to get this right, but it simply will not work the way I want it to. I've asked a huge number of people for help on message boards across the net, and nobody has been willing to help me fix it. So this is my last chance. PLEASE help me. Anyways, here's what I have so far, see if you can fix it and point out what I'm doing wrong: Prototype : int Config (int firstrun); Cut from main() : int firstrun; Config(firstrun); int temp1 = 1; int temp2 = 0; if (firstrun == temp1) { cou ...Show All

  • SQL Server Connect to SSIS Service on machine "Servername" failed: Error loading type library/DLL.

    Hi, Anyone who can tell me why I get this error ! I can connect to Integration services on the server from another client. Pls help //T Per J wrote: I have the same problem from one server but it's working fine from another server. Scenario: Our developer have set up a SQL 2005 x32 with Integration Services. Everything works fine. I set up the production server (x64) clustered and without SSIS. Later on I installed SSIS and configured it according to the guide for failover clustering. From the "old" x32 dev sever we can connect to both SSIS instances but not from the "new" prod server. We get the same error as in the initial post. Ideas anyone I know it's a bit OT, but I have the ...Show All

  • Windows Forms What can stop Trace from writing to the listener?

    After sometimes when the file gets big enough, Trace stops adding entry to the text file. During my testing the file size varies(100KB - 7MB) when the Trace stops adding to it. Any ideas I found the problem. It looks like the Trace.Listeners.Add(FileStream) method doesn't move the file pointer to the end of file automatically. After adding a seek to end after opening the stream the Trace.Listener seems to be writing everything now when flushed. ...Show All

©2008 Software Development Network