Peter Zabback's Q&A profile
Visual Studio Visual Studio 2005 and Crystal Report exporting
Greetings. I was wondering if there's a way to export a report into a pdf directly, without the preview display and having to press the export button manually I want the page to open a pdf straight away. In particular, I mean can it be done with just the aspx-page, without having to write code in the .cs-file And if I do have to write the code, why doesn't it work like it used to I can't seem to be able to create an object from the .rpt file, ...Show All
Visual Studio Team System How to emulate mouse & keyboard actions in dialog boxes in Unit Tests?
I created a Unit test which pops up a login dialog box when it runs. I would like to include code in my test that logins and closes the dialog box automatically when the test is run. The username is entered in a combobox that does not implement autocomplete, therefore I must use a mouse action to select the username. Hello, Other than web tests, we do not provide direct support for UI testing. If you create your own UI framework, then yo ...Show All
Visual J# Erro whit J#
Hi...Urgent... The following errors are occurring when we try to give one printing to print in the screen a consultation to the one bank SQL. This site that makes to the consultation this in IIS 6.0 and following errors is occurring. Somebody already saw these errors Erro com J# 2.0 - Exception of type 'java.lang.ExceptionInInitializerError' was thrown. Erro com J# 1.1 - Could not load file or assembly 'vjslib, Version=1.0. ...Show All
Windows Forms usercontrol
I'm using a userControl to fill the table with data from dataset. When I click a button in that userControl I want to see results in another userControl where I have a grid. How to see if a user clicked that button You should add an event to your usercontrol and raise the event when the button is clicked. Add the following to you UserControl: public event EventHandler ButtonClicked; And in th ...Show All
Visual Studio Team System Team Foundation RC install Failures, Dr Watson
Hi, I have been trying for serveral days to try to figure out what the heck is going on with this install. The issues I have ran into was during the install on TFS (RC), I keep getting these watson failures. I am so stumped on why this is doing this. I have everything else working fine such as sharepoint, reporting/SQL. Here is the last line of the error log file. [03/23/06,20:32:24] Setup.exe: GetGlobalCustomProperty({4F8791EE-486F-44B ...Show All
Visual Basic POPING NEW FORM THROUGH Timers.
I'm trying to make a new windows form through a timer elapsed event one form runs the timer that trigger the event and pops another form BUG: the poping form will not shou form elements like buttons or labels does anyone know what I am doing wrong (code bellow) '''create timer instance Private t As New System.Timers.Timer(2000) Private Sub Form1_Load(ByVal sender As Object, _ ByVal e As System.EventArgs) Handles MyBase.Load ...Show All
System Center iSCSI
Hi, Will iSCSI be supported in the released version Ben .. In the meantime, you can use the current release to approximate iSCSI link utilization by using a SAN in the model. Setup: SAN switch <-> computer <-> LAN switch 1. Choose the SAN interconnect speed to be the same as the NIC speed for the computer whose link you would like to analyze. Right now, this speed can only be ...Show All
Visual Studio How to print a simple JPEG ?
I am just want to print a very simple jpeg from my hard drive using the report control How can I do The jpeg path may change up to different record You can create a report with an image control that gets the image bytes from a data source. At runtime, you can construct a single column, single row data set that contains your report bytes and pass it to the viewer. But I'd like to understand your scenario a little better. If the only thi ...Show All
Visual FoxPro return from a form.
Still struggling to communicate with some of my secondary forms. This problem, again, happens only in StartMode = 4. Everything is fine interactively. LOCAL cUserReturn AS String DO FORM <formName> WITH par1, par2 TO cUserReturn. I get an error message that there is operand/operator type mismatch. I tried to define cUserReturn as Variant - the same thing. The expected type of return is String . According to the Help FoxPro is s ...Show All
SQL Server Why is this query not right for SQL Server?
hi, I have this query, #ReturnItems is a temp table have ProductID, CreditCode, NonCreditCode and Amount, all are int. select ProductID, sum(TotalCredits), sum(TotalNonCredits) from ( select ProductID, sum(ReturnAmount) as TotalCredits, 0 as TotalNonCredits from #ReturnItems where CreditCode > 0 group by ProductID union select ProductID, 0 ...Show All
Visual Studio 2008 (Pre-release) How to set the first TreeViewItem as selected on startup?
I try to set the first item in my treeview as selected, but i can't find a property to do this. Unfortunately the property 'SelectedItem' is readonly. My treeview looks like: <UserControl.Resources> <HierarchicalDataTemplate DataType="{x:Type nav:TreeNode}" ItemsSource="{Binding Path=Childs, Mode=OneWay}"> <StackPanel Orientation="Horizontal"> <Image Source="{Binding Path ...Show All
Windows Forms changing TopToolStripPanelVisible throws a NotSupportedException
the documentation says it "gets or sets", so i have no idea why it is throwing an exception. in the OnLoad event, i have a method that sets the property to false. it doesn't throw an exception there. once the program is running, and i click a button, i set the property to true. the program crashes there with a NotSupportedException, saying that the collection is readonly. the weird thing is, if the property is set to true OnLoad, the p ...Show All
.NET Development FatalExecutionEngineError was detected
FatalExecutionEngineError was detected Message: The runtime has encountered a fatal error. The address of the error was at 0x79f783dd, on thread 0x6d8. The error code is 0xc0000005. This error may be a bug in the CLR or in the unsafe or non-verifiable portions of user code. Common sources of this bug include user marshaling errors for COM-interop or PInvoke, which may corrupt the stack.i am getting this exception when running application on 2.0. ...Show All
Visual Studio Tools for Office Launch conditions
Hi everybody, me again ! I have a little problem with the launch conditions. Well everybody here knows that to deploy an shared add-in or a vsto solution, you have to do some config work in the prequisites dialog. There is already a launch condition for .Net Framework 2.0 by default. But I don't know how to add a launch condition for the PIA's and the VSTO Runtime. Well I know how to add a launch condition. But I don't know ...Show All
Visual C# Thread Safe Access to DateTime
Hello all ... I'm working on a class to return the current date. It is a bit more complex than the following code due to managing cultures, but below is the basic idea. My question is: how can I ensure the execution of the get property is thread-safe, without single-threading my application My understanding from the doc that is that I need to be thread safe when using DateTime. I was thinking that lock would be too restrictive and w ...Show All
