jgz's Q&A profile
Visual Studio Report with subreport works fine on development server - "Unable to connect" when deployed
I'm using ASP.NET 2.0 and whatever version of the CrystalReportViewer that comes with Visual Studio 2005. I have a report that uses a dataset as a report source. It includes a subreport with a parameter that links it to the data in the main report. It's nothing fancy - just what gets generated from the "Subreport Links" dialog. Everything works great on my development machine. However, when I run it from my deployment servers, opening the report throws an error: "Error in file <temp file name>.rpt. Unable to connect: incorrect log on parameters." I've traced it down to the Subreport Link. If I don't include a subreport link in the report, everything works great on the server. Of course, I need that link to make my ...Show All
Visual Studio 2008 (Pre-release) Performance drop after maximising a transparent window
Has anyone else noticed a massive performance hit after maximising a transparent window. This seems to continue even after the window is restored to normal. The same app using a non-transparent window has no problems. I am using the June CTP. Using window transparency (AllowsTransparency = true) forces WPF to render and/or compose its content differently. See here: http://blogs.msdn.com/seema/archive/2006/10/25/layered-windows-sw-is-sometimes-faster-than-hw.aspx When you say the window is restored to normal, do you mean normal transparency, or normal (non-maximized) size Also, what OS are you using Thanks, David ...Show All
Visual FoxPro Visual Foxpro report writer
I have a dbf with following fields bill no, bill date, cust name,item name,qty,rate,amount and i have 553 records. i want a simple report on 132 column stationary. i dont want totals also. (so no page footer or summary). i used visual foxpro report writer. but the report does not print with proper ejection i.e. second page starts printing from bottom of first page and third page prints from bottom of second page and so on. printer is absolutely fine because documents from excel and word print with proper page breaks. can anybody help I think u are completely mistaken about me. i am a small time foxpro for windows 2.6 programmer from bangalore, india. i am just trying to upgrade myself to visual foxpro. i have got ...Show All
Visual C++ Class derived from abstract class with static members
hi, i derive my class from the abstract Stream class. my class contains static members. one of them makes use of a static variable member, where an error is generated at compile time (C2259: cannot instantiate abstract class). of course this is due to the fact, that the static instance of the class is created at the first time, a static member is accessed. why is the restriction, that no objects can be created from abstract classes, also true for the static instance is there a way of get around this thanks! thanks to both, mike and sven! now the code compiles successfully! by the way the types of e.g. the Write method didn't match with the ones of the base class: Int64 should be used instead of long. afte ...Show All
Software Development for Windows Vista Scripts on localized Windows
Looks like Install-certificates.vbs and Install-website.vbs installation scripts do not work on localized Windows. Sorry about the late response. Hrm.. that's not good. Can you give me some specifics I'm revising those scripts right now, I'd love to make any neccesary changes. g Garrett Serack | Program Manager |Federated Identity Team | Microsoft Corporation blog: http://blogs.msdn ...Show All
Software Development for Windows Vista Enabling aero glass?
Is there something in particular that has to be done to enable this I've installed Avalon and the other pieces with it, updated my gfx driver the the latest version from nvidia, but I'm still getting the plain aero, and I don't see anywhere to enable aero glass. My system is far above the requirements needed for it: Athlon64x2 4400, GF7800GTX, 2GB RAM... @ Josh Phillips I think your information was a bit outdated. Everyone should stick to the default drivers which comes with Build 5270. My Nvidia driver 6600GT even work in my 64-bit 5270 with full Aero Effect. If it not work, just wait for next build or at your own risk. Go try that kind of tweak (I don't know it's considered legitimate o ...Show All
Visual Studio 2008 (Pre-release) Code or DB generated guid key values.
I am designing a new DB schema for an experimental Dlinq project. As a general rule I tend to hook up all the FK table relationships based on Guid surrogate keys. Is it more convenient for Dlinq if Guid surrogate keys are generated in C# prior to insert or should I delegate this to SQL Server My concern is that when committing a block of related new objects Dlinq will have to query for the new Guid keys to keep the C# entities in sync with the DB state. You are correct in your analysis and in most situations you would want to limit the number queries passed to the SQL Server, so it would be more efficient to set the keys on the client (C# program). ...Show All
Visual C# How to Get One Millisecond Timer?
Currently I am working on a Signal Graph control. The control will draw the signal state (ON or OFF) for selected device or IO point. I need a Timer that tick every 1 millisecond to scan the signal state because signal state change too fast (ON and OFF). I had tried all the 3 timers provided in .NET Framework, which are System.Timers , System.Threading.Timer and System.Windows.Form.Timer . However, I failed to get a timer that can tick in 1 millisecond. All of them had a delay between first tick and second tick: System.Timers : delay about 15ms System.Threading.Timer : delay about 15ms System.Windows.Form.Timer : delay about 60ms The delay cause me missed some of the signal state. Is there any other way to get ...Show All
SQL Server Table FillSchema Method
Hi, Sorry if these is not the right forum for this: I’m using the data adapter method FillSchema works fine in MS Access but SQL Server Express Edition it doesn’t get the primary key of the table. For example if I try to use the Find method of the dataset I get this error “Table doesn't have a primary key” but in MS Access these do not happen. This is the code that I’m using : Dim sql As String = "SELECT admin.rents.id, admin.rents.transaction_id, admin.rents.item_id, admin.rents.description, admin.rents.due_date, admin.rents.return_date, " sql &= "admin.rents.amount_to_pay, admin.rents.paid_amount, admin.rents.tax, admin.rents.type, admin.rents.deposit_id " sql & ...Show All
Visual FoxPro S/P 2 (BETA) Errors
How can I roll-back the S/P 2 beta for VFP9 I didn't realize it was a beta and downloaded it. Now I am getting table errors with exception codes and VFP9 shuts down. Can I uninstall and reinstall VFP9 then S/P 1 Only way is to reinstall VFP and SP1. SP2 is a Community Technology Preview (CTP) and thus a pre-beta, not to be used in anything but test systems. It is buggy by definition. ...Show All
Visual C++ Driver and DLL
hi all! i'm new here and i tried to look for a post that answer my question but without funny results so... is there a way to load a function from a dll in a driver i've found only MmGetSystemRoutineAddress but loads only from nstokrnl.exe and hal.dll.... and i cant link LdrLoadDll 'cause linker gives error: 1>driverfoo.obj : error LNK2019: unresolved external symbol __imp__LdrLoadDll@16 refer enced in function _foo@0 can someone help me thank you all anyway and im sorry for my bad english.. :P :) i know that im not good to explain my problem and im sorry... so: i tried to use: LoadLibrary GetProcAddress FreeLibrary but when i start the triver with StartService it fails with ERROR_PROC ...Show All
Visual Studio Express Editions Create new control thru code
how can i create a new textbox thru code.... you can do like this. dim textbox1 as new TextBox(); textbox1.name = "xyz" textbox1.top = 10 textbox1.left = 10 textbox1.visible = true Form1.Controls.Add(textbox1) ...Show All
Windows Forms Databinding: Adding and Reading from Access DB Query
Hi, I really need your help on this: I am working with visual C# 2005 and using Access DB.. I have a query from my database that I want to read from. I tried to deal with it as I dealt with my database tables but I get an error.. (( I have a column named Price thats calculated by a declared formula for example x = y+z while x=Price and y,z are values taken from a table in the same database. I need to show the Price value in my form)) Waiting for a reply. Hi, Please I need an urgent reply for my problem! I looked everywhere on the internet and found nothing.. I have a table that has a column named "Price" where price is calculated ...Show All
Visual C# Using C# to Delete contents of entire Access Table in one step
I need to delete the entire contents of an Access Table after I am done using it. I am using the Table to store data until it is printed in a Crystal Report. After it is printed I no longer need that data in the Table. I have been able to delete individual rows in the past using the .Delete(...) and then the .Update(...) functions. The prblem is that doing this for 5000+ records several times a day would be cumbersome and time consuming. Is there a comand for deleting all the contents of the table in one step currently for testing purposes I am just opening the database and manualy deleting the entire contents of the table. Here is my current code for deleting the data: public void LoadDelete ( int Count) { StreamReader read ...Show All
.NET Development Referencing Assemblies Through Code
How can I reference an assembly through my code, I don't think it can be part of a project, this is related to my previous thread about 3 days ago, but I prefer to keep different questions in different threads. Anyways, Upon running my game, it will build a .exe, from the contents of a .cfg file, I need the .exe that it outputs, to be able to reference my main Game, I need it to be able to change variables and stuff, they are mostly all set to public and what not... OH, okay, yeah I totally didn't think about that, I don't need an exe at all, thank you so much, I may still have a question as to how to do this though, the loading part. Edit: Okay, but , will both of them be able to access each other I ne ...Show All
