jcTW's Q&A profile
.NET Development Urgent Help needed on MS CRM, FetchXmlSchema
I have tried to convert FetchXmlShema.XDR (as provided in CRMSDK 3.0) to XSD and I got an bizare error saying: A column named 'value' already belongs to this DataTable: cannot set a nested table name to the same name Aparenlty the XSD does not allow a nested table to have same name as one of parent table's column name. So I cannot convert the XDR to XSD without changing name of one of the field name (which i did and i finally got the XRD converted to XSD). My question is: Is there a work around (or change that I could make) to make current XDR and XSD competible and they reflect single schema structure (As the solution described by me makes both the schemas incompetible such as i have to rename one of the fields from 'value ...Show All
SQL Server Crystal Report
I would like to automate the printing of some Crystal reports that I run daily and was thinking about setting up a scheduled task to automate the printing. Any suggestions Cheryl ...Show All
Visual Studio 2008 (Pre-release) LocBaml doesn't work when ResourceDictionaries exist
I am having problem with satellite assemble generated by LocBaml tool while I am trying to access value from a resource dictionary. It works for en-US but when culture changes to de-DE, it finds it difficult to access values from ResourceDictionary. Parsed file shows all info about XAML controls on all windows as well as the info about resources in Resource Dictionaries. After translation & regeneration of the satellite assembly, that doesn't work. If I don't have resourece dictionary, localization works fine for all cultures. I am using these dictionaries to dynamically change themes (not based on culture) for Branding purpose. Pls help. I don't think this is a known issue. We'll investigate. Tha ...Show All
Visual C# Value vs. Reference. When? Why?
Hello. I'm lost with some questions about types and performace. If i use strings (or another reference type) in a struct .. is struct more efficient than class in this case If i want create a string or another reference type collection ... is better ArrayList or List<string> If i have a struct that contains reference types, and pass it by value to a function ... the references are copied ... or the objects will be cloned When a struct that contains reference types ... is out of scope, whats happen With: struct MyExample { int MyInt; object MyObject; } MyExample Example; Are Example variable in the stack or because have a 'object' this part is in the heap Thanks in advance. Regards. The first thing to keep in mind is th ...Show All
Software Development for Windows Vista Strange Vista Sidebar Gadget Problem
So I got into developing a vista sidebar gadget and ran into a weird problem...The gadget uses simple ajax to call a server side script on a sub domain I have and the xmlHttpRequest.open() call in the gadget .html javascript gets a "Access is Denied" error. But here is the kicker...it only gets that error on Vista Home (basic or premium). On Vista Ultimate or Vista Business it works fine...Im at a loss. Im positive its the version that is causing the error because I have tested across multiple internet cnxns and mulitple Vista Home and Ultimate/Business installs with the same results. Anyone have any ideas at all Note: Iam using REST. I have tried turning off all antivirus and windows firewalls. Have toggled UAC ...Show All
Windows Forms ComboBox Font
Hi, Is it possible to change the FontStyle of the text displayed in the combobox while the font of all the objects in the item collection remains the same. Thanks! Yes but it requires creating a custom combobox. Download the following sample: http://www.codeproject.com/cs/miscctrl/ImageComboBoxControl.asp ...Show All
Visual C++ Hiding and disabling the Message controls
I have a problem with this code: void CDag2Dlg::OnCkEnblMsg() { // TODO: Add your control notification handler code here // Get the current values from te screen UpdateData(TRUE); // Is the Enable Message Action check box checked if (m_bEnableMsg == TRUE) { // Yes, so enable all controls that have anything // to do with showing the user message GetDlgItem(IDC_MSG)->EnableWindow(TRUE); GetDlgItem(IDC_SHWMSG)->EnableWindow(TRUE); GetDlgItem(IDC_DFLTMSG)->EnableWindow(TRUE); GetDlgItem(IDC_CLRMSG)->EnableWindow(TRUE); GetDlgItem(IDC_STATICMSG)->EnableWindow(TRUE); } else { // No, so disable all controls that have // to do with showing the user message GetDlgItem(IDC_MSG)->EnableWindow(FALSE); ...Show All
SQL Server import AS to BID project - how to change cube storage location
After import of AS database to a new project I need to change the cube storage location because it probably points to a location on the server that is not valid in dev. How can I change the cube storage location in the project (not from management studio) Regards, Right click on the project in the solutions explorer window. Select properties and later deployment. Regards Thomas Ivarsson ...Show All
Visual Studio Team System Third-party DLLs and Team Builds
We have several projects that reference third-party DLLs. However, the references point to where the DLLs were installed when the third-party SDKs were installed (something like C:\Program Files\...). This hasn't been a problem during normal development procedures because every developer's workstation has a similar directory layout. However, I've been tasked with setting up automated nightly builds. When TFSBuild gets the source code, it is placed too deep in the folder structure for the relative paths in the project files to be valid. Is there a "best practice" for this situation I was thinking we should just copy the required DLLs into our team project and add them to source control, then add references to these copies. ...Show All
SQL Server SQL Database connection set up in Global.asax.vb for multiple users
We have an application where users log in and set up a ConnectionString based on the login-info. As to now, we have used Application.Contents("conn") = (strConnectionString) in Global.asax.vb (Application_Start section) and then in the in the webforms we use Dim con As New SqlClient.SqlConnection con = New SqlClient.SqlConnection(Application("conn")) con.Open() ...... ...... con.close() (Each user has their own sql database that they connect to using the same scripts.) The question is: When many users are logged on at the same time, will the use of Application.Contents be a safe way to connect to each users own database or is there a possibility that users suddenly will try to establish a connection to a databa ...Show All
SQL Server Report Manager not responding
Hi, I'm hoping to get some help here. I've spend countless hours trying to get Reporting Services running without success. When I run the Report Manager it does not respond. Coming up with Opening page http://localhost/reports/Pages/Folder.aspx . . . The progress bar ticks along but the page never actually loads. The Configuration tool shows green icons everywhere. No errors in the Event viewer. I am running Windows XP Professional with SP2. I have uninstalled and re-installed IIS, ASP.NET and SQL2005 numerous times. Varying the order, all without success. What else is involved I have loaded Service Pack 1 and the latest hotfixes. What else can I try Thanks in advance, Claude Hi, there sh ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Collision - Boundingbox
Hey guys it’s me again I have one further question. How can I make Boundingboxes and Collisiondetection. I now the sample in the help documentation but i don`t understand it and it doesn`t really work. Could someone give me a sample collision class Can you also show me how to use the class boundingbox i am to stupid for it. Thanks to all There is nothing built-into XNA for collision. You need to write your own. An excellent book, with tutorials, derivations, and implementation code for almost all of it, is "Real-time Collision Detection" by Christer Ericson. I can't say enough good things about this book. I use it as a fairly comprehensive reference. Anyone who wants to learn about geometry in general should read it from c ...Show All
Visual Studio Express Editions Stuck in loop; newbie need help
Hi All ! The following code seems to stuck in loop. Any idea why Function koe( ByVal u As Short ) As Boolean Dim z As Integer = 0 Do My .Application.DoEvents() Out(&H378S, 1) For z = 1 To 200 z += 1 Next Out(&H378S, 0) 'Stop For z = z To 1000 z += 1 Next 'Acc = 0 z = 0 Out(&H378S, 0) Loop While u = 1 'Acc = 0 z = 0 Out(&H378S, 0) End Function The code comes out of do loop when u = 1, but it still keeps doing output to LPT Thanks in advance Chopa Complete agree with you stephen. Putting a debugger and stepping through the code looking at the watch windows to see ...Show All
SQL Server Error when Exporting to Excel using SSRS 2003
Hi, I have encountered an error when attempt to open a report which is exported to Excel using SSRS2003. It looks like this: Microsoft Office Excel File Repair Log Errors were detected in file 'C:\Documents and Settings\TocsonEI\My Documents\Rigid\Reports\rptRigidTransactionSummaryReport3.xls' The following is a list of repairs: Damage to the file was so extensive that repairs were not possible. Excel attempted to recover your formulas and values, but some data may have been lost or corrupted. At first I thought it was because of the sheer bulk of the report since when I break down a month's report to every 5 days, it would export without error. So I thought that if I can break a whole report into several worksheets us ...Show All
Visual Studio Express Editions Form scroll bar visible
Hey, When I have my form on the screen I want that only the form vertical scroll bar to be visible when the form contents are larger than its visible area. I have tried settings as: Me .AutoScroll = False Me .VScroll = True Me .HScroll = False Me .VerticalScroll.Visible = True Me .HorizontalScroll.Visible = False …in several scenario, but they seem to have no effect. Both scroll bar shows up. How do I get around this one Best Regards Cathrine spotty, Thank you for your patience. I have it now. Cath ...Show All
