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

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

Zadoras

Member List

thedewd
Jason Croft
jmurray_mi
cbtm
nhaas
Anthony Tarlano
LeoXue
Xaid
NeederOfVBHelp
wei jia jun
SavitaHK
millie_w
andyrd
PravinD
Saiboro
bt8114
Zero WangXin
Gumbatman
SterlingH
dampbarn
Only Title

Zadoras's Q&A profile

  • Visual Studio Tools for Office How to force a customization to close?

    Hi, I have the situation in a VSTO2 customization project that, under certain conditions, I need to force the customization and the document to close. Currently I call the standard Word api to do this - ie document.Close( ref falseObject, ref missing, ref missing); in C#. The problem with calling this inside my customization is that after the ' ThisDocument_Shutdown' event has fired the code stack that you were in before calling the document.Close line then continues to run and this leads to unpredicatable results and sometimes threading exceptions which cause Word to freeze up. Is there a cleaner way to force the customization to stop and the document to close from within the customization thanks. Simon ...Show All

  • Visual Studio Tools for Office Infopath Automation

    Hello, Please accept my apologies if this post is in the wrong forum. I checked around and believe this is the correct place to post. If not please advise and i will promptly move. I am currently using an infopath solution for data collection. The forums contain a number of dropdown lists that need to be populated at run time. Unfortunately, a requirement exists that specifies that the infopath forms must function in a disconnected manner (not my idea!!). So that pretty much excludes all the sharepoint lists / webservice / dataset examples i have seen. I would like to know if it is possible to populate the infopath form controls using automation. IE: //Create an infopath application object //Open an infopath form / template //Obtain ...Show All

  • Visual C++ VC++ 2005 redistributable

    Hi, I'm trying to get an MFC application compiled with VC++ 2005 to run on a machine with VC++ 2005 express. There seems to be a problem with the manifest (which I don't fully understand despite reading the info on msdn). The original error in the event log when I tried to run it said Microsoft.VC80.CRT not installed so I installed the platform SDK and also copied over the atlmfc directory from the development to target machine. I also downloaded the VC++ 2005 redistributable and installed it. When I installed it, I didn't get any confirmation that the installation was successful, the installer appears to quit after displaying the progress bar. Is this the correct behaviour Now I no longer get any messages in the event log but when I try ...Show All

  • Microsoft ISV Community Center Forums Read Data from Execel with VBA and write to txt file

    I'm need to write a Excel Macro that will read the worksheet and write the data int a fix format txt file. I need to check the value in column A and if the value changes I need to insert a blank row. you can check the value of a particular cell in your worksheet by .cells(rowNumber,columnNumber) so use that to compare to your initial value, and go from there. is that helpful at all kriti ...Show All

  • Visual Studio Team System CTP7 BUG - Database Role Membership is not Compared

    I have created a custom database Role with grants and denies in the securables and one Role Member. When I do a schema compare the role membership is not considered regardless of the settings of the IDE (schema settings, project settings). When updates are written the role is created and the grants and denies are written (the latter if ignore permissions is not checked). HOWEVER - 1. The membership is never written meaning the user is stranded without a role membership. I assume that the SQL for this should appear in the RoleMemberships.sql but it doesn't. AFAIK there are no UI Settings that affect this behaviour (ignore permissions on or off has no affect). 2. The SSMS UI view of the role does not show the securables or the schem ...Show All

  • Visual Studio Local Report - Object not found exception

    Hi All, I'm working on local report mode with delay signed assemblies. I use a custom assemblies to hold complex expressions which are used in the report. During report processing in the viewer I get the following exception message displayed in the viewer. "An error occured during local report processing. An unexplained error occured in Report processing. Object reference not set to an instance of object." As soon as I go back and unsign all assemblies it works. I've done a lot of trial and error fixes to tackle this to no avail during the past couple of days. Can someone pls guide me a to a formal way of getting more information about how to troubleshoot this I came across a thread which suggested looking at report server logs ...Show All

  • Visual C++ time accuracy

    I have this program to chk time, but the accuracy is 2 sec. I want more accuracy ( 1 sec or less ) pls help , thanks #include <io.h> #include <iostream.h> #include <conio.h> #include <windows.h> int main(void) { FILE *stream; std::ftime ft; int h,m,s,ms; if ((stream = fopen("TEST.$$$","wt")) == NULL) { fprintf(stderr, "Cannot open output file.\n"); return 1; } getftime(fileno(stream), &ft); h=ft.ft_hour; m=ft.ft_min; s=ft.ft_tsec; printf("File time: %u:%u:%u\n",h,m,s); printf("File date: %u/%u/%u\n", ft.ft_month, ft.ft_day,ft.ft_year+1980); fclose(stream); cout << "\n\nPress any key to continue"; getch(); // wait for key pressure return 0; } ...Show All

  • Visual Studio Express Editions Relative Path troubles

    Happy New Year VB experts, I’m sure that this is a trivial problem, but I can’t create a relative path for a file in the Resources folder, or use My.Resources to specify the file. The code only works if I use an absolute path. In my application I’m using the Microsoft Agent, Merlin. I loaded the merlin.acs file into the Resources folder. The code snippet below has the three Characters.Load statements that I have attempted to use. Using the one with PathAbsolute works; the other two statements give a run time error. The file can not be found. Private Sub Form1_Load( ByVal sender As System.Object, _ ByVal e As System.EventArgs) Handles MyBase .Load Dim PathAbsolute, PathRelative As String ...Show All

  • Visual Studio 2008 (Pre-release) Data Binding To SQL Server

    I have written the following code to bind to a SQL Server Data Source: < DockPanel.Resources > < SqlDataSource > < DataSource x:Key = " WeekPeriods " > ConnectionString="server=RMUK7;Database="tempdb" SelectCommand="SELECT Weekly_Period FROM d_WeeklyPeriods" </ DataSource > </ SqlDataSource > </ DockPanel.Resources > I would then like to bind the data to a Combo Box. However when building the project in VS2005 I get the following error and also how would I then bind the results to the Combo Error 1 The tag 'SqlDataSource' does not exist in XML namespace 'http://schemas.microsoft.com/winfx/2006/xaml/presentation'. Line 20 Position 10. ...Show All

  • SQL Server Excel 2007, MDX Compatibility and connection string (for ragged dimensions)

    I'm trying to open a simple SSAS 2005 cube with a ragged hierarchy (it has a level that contains member that should be hidden if the member name is the same as the parent). I read about the necessity to use MDX Compatibility=2 into the connection string to see the HideMemberIf property in action. The dimension browser in BIDS does not display a member into a level only if it has no visible childs. May be this is a browser issue, as I read somewhere... With Excel 2007, it should be possible to change the connection string. Unfortunately, even if I change it, Excel 2007 force the "MDX Compatibility=1" into my connection string. Moreover, it adds a "Safety Options=2" and "MDX Missing Member Mode=Error" and even if I try to change them, ...Show All

  • Visual C# How to Replace word in text file?

    Hi, I have a text file, How can I replace a specific word in this file while I dont know in which line it is Hey, I wonder if it doesn't ,since i've tested.Did i get ur problem correctly Could please post ur code snippet, using the posted code snippet or what is the error ur getting Thanx, Ch.T.Gopi Kumar. ...Show All

  • Visual Studio 2008 (Pre-release) Measure constraints without clipping

    I am writing a custom panel that will make all of its children the same (arbitrary) size. The behavior I'd like to see is that children will get measured to try to fit within the given size, but will return a larger size if needed. From there, I will apply a rendering transform to enforce the size if needed. Below is my first attempt at this: protected override Size MeasureOverride( Size availableSize) { // Try to make child the size we want Size childSize = new Size (_ChildWidth, _ChildHeight); foreach ( UIElement child in Children) { child.Measure(childSize); } return new Size (); } The problem is that when I retrieve DesiredSize on a Button control in my ArrangeOverride method, the size ret ...Show All

  • SQL Server Report Builder in integrated mode

    Hi, I have an installation with Reporting Services in integrated mode with WSS 3.0, with Reporting Services Add-in for SharePoint. I have a document library in witch I added a data source to an SSAS database and a Report model on top of this. When I click Add a Report with Report Builder, the report builder opens, but it fails to connect to the model. There is a dialog window "Select Site or Server "asking for a URL. I put in there http://localhost , but is not working. I am not able to connect to the report model. I will appreciate any help on what could be the reason or how can I investigate this. Thanks, Dan P.S. I did the same scenario on the development environment it works from start, without an ...Show All

  • Visual Studio How to refresh Crystal Report With Parameters Based Stored Procedure ASP.NET???????

    Hi All, How to pass parameter values to the Crystal Report on ASP.NET I write following code to refresh the report but I can't get the report as per my parameter value Please review my code below, and help me where i do mistake                           void test() {           string strRepType = Request.QueryString[ "RepType" ];           string strCode = Request.QueryString[ "Code" ];           string strYearMonth = Request.QueryString[ "YearMont ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. Struggling with 3D sound - Anyone got this working?

    I'm getting IndexOutOfRange exception on the " engine.Calculate3DAudio(listener, emitter)" line below. Anyone managed to do anything like this I want my sound to come from a particular point. I understand with my code below that as theplayer moves, the listener isn't updating position (so sounds already started will be wrong), but I need to get the sound playing first! public class Sound { private static AudioEngine engine; private static WaveBank wavebank; private static SoundBank soundbank; private static Audio3DEmitter emitter; private static Audio3DListener listener; public static Cue Play( string name, Vector3 playerLocation, Vector3 soundLocation) ...Show All

©2008 Software Development Network