Sergey Sorokin's Q&A profile
SQL Server Message Box In Reporting services
Hello, I am using sql reporting services 2000. I have tried to put a message box in my reports using a VB function. If the report contains 10 pages, the message box pops up 10 times. What do i need to do to make the message box pop up only once during the start of the report Also, if I click CANCEL(vbOkCancel), the cursor should go back to the parameter box prompting me to enter a parameter again. In this case, I enter a date and check whether it is a MONDAY or not. VB function is as below... Function CheckDay(ByVal S As DateTime) As Integer Dim GivenDate as Date Dim GivenDay as Integer Dim intMsg as Integer GivenDate = S GivenDay = WeekDay(GivenDate) If NOT GivenDay = 2 intMsg = MsgBox("The selected day is not a Monday", VbOKCanc ...Show All
Software Development for Windows Vista Cannot install AT&T Natural Voices on Vista RC2
The exact error is: The operating system is not adequate for running ATT Natural Voices 1_4 Engine and Crystal16. Tried the compatibility modes but to no avail. Hi install o.r.c.a. http://support.microsoft.com/kb/255905 open as administrator file>open the ATT Natural Voices 1_4 Engine and Crystal16.msi, in the left pane you see an option called Launch Condition. after clicking on it delete the first option. ...Show All
Visual FoxPro Cursor adapter problem
I create cursor adapter with data source type = native, set path to database, in data acces tab I select all fields in table and set buffer mode override = optimistic table buffering, in tab auto-update i set: auto update and update all fields. After that i drag and drop cursor in form and make grid. In properties on cursor i set: AllowDelete = .T., AllowUpdate = .T., AllowInsert = .T. but when i run form i can update only grid, table in database isnt updated . When i mystake ...Show All
.NET Development How I can remove completely .Net Framework 2.0 Redistributable?
I used add/remove program to erase Microsoft .Net Framework 2.0 Redistributable and all looks OK, but still in my pc, I would like to delete all registers of it, if it can't be removed, I could install the 3.0 version . Excuse my written english badly. F.F. You don't need to uninstall 2.0 in order to install 3.0. See the .NET 3.0 Deployment guide ( http://msdn.microsoft.com/library/default.asp url=/library/en-us/dnlong/html/netfx30.asp ) under How .NET Framework 3.0 Relates to .NET Framework 2.0 and Earlier To get the .NET Framework 3.0 please see the forum announcement at How .NET Framework 3.0 Relates to .NET Framework 2.0 and Earlier To get the .NET Framework 3.0 please see the fo ...Show All
Visual Studio VSS 2005 install not installing VS 2005 plugin.
Hello, Not sure what's going on but has anybody successfully been able to get the VSS 2005 install to complete successfully and when finished, have the VSS plug-in available in Visual Studio 2005 I have enabled the IIS compatiblity. I right click and run the vss setup as administrator. I get no error messages but afterwards, if I click on file there is no source safe option. Also, when I try to open a website, source safe isn't an option. My database server is on a remote W2k3 server. I need the add-in for Visual Studio to open projects from databases on remote servers. Also, I have tried installing VS 2005 SP 1 beta. (Not that I could see how it would make a difference but tried none the less.) Any ideas of how to get this ...Show All
.NET Development Session Vs Page.Session
HI this is one questions whose answer i couldnot find cud u anyone help me out Is there Difference Between Page.Session and Session If yes what is the difference bcoz since i am extensively using Page.Session thinking it wud be active only for the Current page thanks rathish rpillai@nexvisionix.com They are the same... both are System.Web.SessionState.HTTPSessionState. They are both just shortcuts to the same class. ...Show All
Visual Studio HELP ME PLEASE !! PARAMETERS
I need to switch between the databases at runtime for my crystal reports in .NET 2.0. Is it possible to change the crystal reports connection string at run time in .NET 2.0 Please provide me any sample code which illustrates dynamically changing the connection string of crystal reports at rune time. Thanks in advance, Vaishu Try this code sample: Dim crtableLogoninfos As New TableLogOnInfos() Dim crtableLogoninfo As New TableLogOnInfo() Dim crConnectionInfo As New ConnectionInfo() Dim CrTables As Tables Dim CrTable As Table 'Declare ReportDocument object and load your existing report 'Make sure that you give the correct path for the document else it will give exception ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Billboards
Hi, I’m trying to convert my particle system to XNA and need to know how to use billboards, in DirectX managed you could do something like: sprite.SetWorldViewLH(…); sprite.Begin(SpriteFlags.Billboard); sprite.Draw2D(…); sprite.End(); and that would draw the sprite in the specified 3D location facing the camera, I know the Matrix.CreateBillboard() Method exist and would like to know how to use it. Thanks. If you are just rendering small particles that always face the camera, then just do this: Declare your VertexType with the VertexElementUsage.PointSize element. Render the points using PrimitiveType.PointList . If you need more contr ...Show All
Visual Studio 2008 (Pre-release) Using IList as DataMember type cause "System.ServiceModel.CommunicationException"
For some reason, I can only use IList instead of IList<T> as a collection DataMember in a DataContract. Here is the sample code snippets. [ DataContract ] [KnownType(typeof(Child[]))] public class Parent { private string _name; [ DataMember ] public string Name { get { return _name; } set { _name = value; } } private IList _children; [ DataMember ] public IList Children { get { return _children; } set { _children = value; } } } [ DataContract ] public class Child { private string _name; [ DataMember ] public string Name { get { return _name; } set { _name = value; } } } IService: [ O ...Show All
Windows Forms DataGridView Vs ListView
I'm writing a WinForms app which need to display a list of data in columns and rows format. The data are sourced from TCP/IP messages (i.e. not from a SQL database). Could I still use DataGridView for presentation If so, how do I convert data into DataSet, which is used by DataGridView If not, am I forced to use ListView for presentation One thing you try is creating a DataTable and binding it to the DataGridView You can bind a DataTable to the DataGridView like this DataGridView dgv = new DataGridView(); BindingSource bs = new BindingSource(); DataTable dt = GetDataTable() // Gets the DataTable bs.DataSource = dt; dgv.DataSource = bs; The function ...Show All
Windows Live Developer Forums Getting more than 250 results
On Monday it was observed that MSN Search would give access to 1000 search results like Google and Yahoo for the first time: http://forums.searchenginewatch.com/showthread.php p=90787 I've tried accessing more than 250 results with the MSN API, but so far the most I've been able to get is 290 results. Is MSN going to up the number of returned results for the API like they have for the public web interface Thanks, Frank The announcement about more than 250 results was regardin the MSN Search website, not the web serivce. I believe you need to upgrade (i.e. pay for) to a commercial application ID to get more that 250 results; but I can no longer find a reference to this. ...Show All
SQL Server shrinking a file
I am trying to use the command DBCC SHRINKFILE to shrink a database. the command seems to be executing just fine, but the database does not shrink. I don't see any error messages under messages. The .mdf file is currently about 7GB, which of which only about 1 GB is actually being used . I want to shrink the .mdf to about a 2GB. Why does the DBCC shrinkfile command not working FROM BOL TRUNCATEONLY Causes any unused space in the files to be released to the operating system and shrinks the file to the last allocated extent, reducing the file size without moving any data. No attempt is made to relocate rows to unallocated pages. target_size is ignored when TRUNCATEONLY is used. try anyone of ...Show All
Visual Studio Express Editions SerialPort 101 for a beginner
Hello, I have spent a lot of time trying to use the serial port command in the toolbox but i was unsucessful. I looked at the samples posted online but i always get errrors. Can anyone explains what are the steps needed to have a sucessful communication (read and write) from and to a serialport.If you can post the code it would be great...Please help Thank you Ok can you help me get this thing working by just filling in the missing code if there is.Here is my updated code with the open serialport Public Class Form1 Dim StoreReceived As String Private Sub SerialPort1_DataReceived(ByVal sender As System.Object, ByVal e As System.IO.Ports.SerialDataReceivedEventArgs) Handles SerialPort1.DataReceived SerialPort1.Open() Store ...Show All
.NET Development 64 bit remoting app searching for VJSharpCodeProvider
We have a remoting app we are currently trying to port to 64 bit. It is written in C++/CLI. Whenever we try to connect to our application on the server throws the following exception: The assembly with display name 'VJSharpCodeProvider' failed to load in the 'LoadFrom' binding context of the AppDomain with ID 2. (Full exception included in the bottom of this message). We do not use any J# in our application. As there is no x64 j# runtime I am at quite an impass as to what to do. It may be worth noting that we are connecting from a 32 bit client. I would be thankful for any suggestions. Mike The assembly with display name 'VJSharpCodeProvider' failed to load in the 'LoadFrom' binding context of the AppDomain with ID 2. The caus ...Show All
Smart Device Development label background color not working
Hello Im creating some labels for my program on PPC with mobile 5.0 and VS 2005. I noticed that that my labels won't accept background color other than those belonging to System color. how can i use other color for my label like yellow, blue or green http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=178752&SiteID=1 ...Show All
