I forgot to mention that my programs cycle through 4 different graphs and they are rebuilt each time. I forgot to remove the LineAnnotation from the Chart. When I did that, everything worked perfect. Sorry to bother people. Hopefully it will help somebody else. So now when it cycles to the next...
I have a MSChart that is using CahertType of Line. After the Line Chart has been created, I add a LineAnnotation to display a line where the boss wants the goal to be and then add it to the Chart. When it displays, it flashes the Chart empty except for the LineAnnotation and then re-flashes the...
cjard,
Thanks for the input. Does MERGE distinguish whether it UPDATED or INSERTED? That is at the crux of the problem I had. I needed to know which action was completed.
Thanks. I changed to using a ReturnValue in the C# code and that solved the problem.
mySQLParam = myCmd.Parameters.Add("@Inserted", SqlDbType.Int);
myCmd.Parameters["@Inserted"].Direction = ParameterDirection.ReturnValue;
Int32 iInserted = 0;
myCmd.ExecuteNonQuery();
iInserted = (int)...
So I have a StoredProcedure that either Updates or Inserts a record. The SP is as follows:
USE [FPY]
GO
/****** Object: StoredProcedure [dbo].[insupd_tblMRBHistory_AB] Script Date: 2025-01-10 8:02:00 AM ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
ALTER PROCEDURE...
You were kind of correct. Apparently, ValueToPixelPosition(0) is not the first Bar. Changing the code to ValueToPixelPosition(1) for the first bar and subtracting 1/2 the Label width solved it.
Thanks for the help.
I have a StackedColumn Chart. I would like to draw text at the X position of the Series centerpoint and a Y position near the top of the chart. I am having trouble figuring out where the Series XY position is.
The closest thing I have been able to achieve is shown below:
I achieved this by...
I need to show the Label of the bar in the middle of the bar not on top.
To get the original photo below, I have set the series flag IsValueShownAsLabel to true. The desired label position is shown in the second screenshot.
Original:
Desired:
Is there a way to change the FontSize of the ErrorText displayed in DataGridView or a way to override the default behavior and draw it yourself?
I assume that it is using the FontSize of the Row or Cell?
Turns out I left out an important piece of information. The Worksheet that the Range is working on was created by doing a Worksheet.Copy(). I did a little research and found the following quote which explains the problem I think:
So I did the Filter on the Original first, then copied it and...
I need the following filter to work in C#.
Here is the working Macro in Excel VBA:
ActiveSheet.Range("$A$1:$XFC$13214").AutoFilter Field:=6, Criteria1:= ">=1/1/2024", Operator:=xlAnd, Criteria2:="<=1/31/2024"
Here is what I thought was the C# equivalent:
excelRange.AutoFilter(Field: 6...
I haven't. I needed data and was not given access to the data directly. The JD Edwards Team ran Business Objects generating an attached CSV file. Unfortunately, that process took 15 minutes and I needed closer to real-time than that so I was given a View on a nearby server. That got me pretty...
.Net 4.5.
So I did do the initializing in the constructor, but I get the following output:
instead of the first two lines from above followed by the ProtocolSetup which looks like this:
It's getting there for sure. Not sure what else I need to do to make it display properly. I haven't...
I have a class defined that I am going to be assigning to a PropertyGrid. The class is defined as a normal class with properties, but one of the properties is another class. This worked just fine in Visual Basic, but in C# I get an error on the line that has the inclusion of the other class...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.