15,891,905 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Javascript questions
View Visual Basic questions
View Python questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
Comments by JTRizos (Top 28 by date)
JTRizos
7-Nov-14 12:27pm
View
Siva, thank you for the prompt response.
Yes, it is there. I should have included that code too. The code gets the Case record for update whcih includes the CaseWorker column and when the CaseWorker is not in the CaseWorker DropDownList because the person is no longer here, I get the error. The application works well except for this quark.
Here it is:
<pre lang="c#">
//** Called from UpdateFIDM
public DataSet GetOneFIDM(string strFIDMID)
{
query = "SELECT FIDMID, " +
"FIDMStatus, " +
"CaseWorker, " +
"NCPName, " +
"CSENumber, " +
"CallReceivedDate = CASE CallReceivedDate WHEN '01/01/1900' THEN null ELSE CallReceivedDate END, " +
"MultiCountyCase, " +
"LevyDate = CASE LevyDate WHEN '01/01/1900' THEN null ELSE LevyDate END, " +
"EOTWOTW, " +
"AssetType, " +
"FinancialInstitution, " +
"BankNumber, " +
"AmountInAccount, " +
"LevyAmount, " +
"ArrearsBalance, " +
"SourceofFunds, " +
"NCPClaim, " +
"LCSAResolution, " +
"ResolutionType, " +
"Collection, " +
"COESent, " +
"COEReturnDate = CASE COEReturnDate WHEN '01/01/1900' THEN null ELSE COEReturnDate END, " +
"CourtDate = CASE CourtDate WHEN '01/01/1900' THEN null ELSE CourtDate END, " +
"CourtType, " +
"ResolutionDate = CASE ResolutionDate WHEN '01/01/1900' THEN null ELSE ResolutionDate END, " +
"Suppression, " +
"SuppressionLength, " +
"TimeSpent, " +
"Notes, " +
"County, " +
"FIDM.Added, " +
"FIDM.AddedBy, " +
"FIDM.Updated, " +
"FIDM.UpdatedBy " +
"from FIDM " +
"where FIDMID = '" + strFIDMID + "' ";
DataSet ds = obj68.getData(query, connection);
return ds;
}
JTRizos
9-Oct-14 14:12pm
View
Yes, I looked at the versions, VS2013 and VS2008. The C# apps were all developed using VS2008. The VB app was developed with VS2010 but I prepared it for our use with VS2013. I cannot find where I would have set the install folder in either version.
Thanx for your comment.
JTRizos
13-Feb-14 15:38pm
View
SQL and Reporting Services are installed on the same server. I was trying to deploy from Visual Studio on my workstation. However, I think I solved the problem. I added EContacts to Folder Properties on the Report Server with the proper roles and it now works. I missed this one and rereading what you sent made me go back to revisit all my settings. I think what I will do now is back out some of the permissions and SQL Server security settings on EContacts so I understand this better.
Thanx you for your advise and followup. After reading all the stuff that can be Googled, sometimes it just takes someone to say try this to open the gate. I very much appreciate it.
JTRizos
13-Feb-14 14:42pm
View
Thanx mgoad99 for the response. I checked and EContact has all the Roles assigned including Publisher. I read through the article you sent and I have tried all the suggestions but still get teh permissions error when trying to deploy a report or project.
JTRizos
5-Apr-13 13:20pm
View
We were able to correct the Unable to load client print control by removing the problem entry in the registry on our XP machines. We have had no problem since 2009. Now we are migrating to Windows 7 and now have this problem again. None of the suggestions here seem to fix the problem. We use SQL Server 2005. Any ideas on what to do to fix this problem on workstations using Windows 7 will be much appreciated.
JTRizos
14-Sep-12 17:06pm
View
Thank you Mario, Interesting link. I will review it and try out your suggestions. Very much appreciated. Have a great weekend!
JTRizos
14-Sep-12 12:30pm
View
Deleted
The count is 0 but should have 14 entries.
JTRizos
14-Sep-12 12:21pm
View
The count is 0. There should be 14 entries.
JTRizos
13-Sep-12 12:13pm
View
I placed it in the Page_Load Event (see above). Here's part of the code
rblTeam.SelectedIndex = 0;
ListItem tmpItem = rblTeam.Items.FindByValue("SRT");
if (tmpItem != null)
{
rblTeam.Enabled = false;
}
int TodaysDay2 = DateTime.Today.Day;
I placed a control break on the if line and the tmpItem contained a null. I am thinking of doing this in the SelectMethod code that retrieves the table entries.
Thanx again for your help
JTRizos
12-Sep-12 17:29pm
View
Hi Mario, #1 doesn't work. srtItem comes back as null. Tried it with Text and Value. Thanx for the suggestions.
JTRizos
12-Sep-12 14:54pm
View
Hi Ashraff, Do you mean in the SelectMethod? I could do it in the GetCSOJobUnits code that retrieves the list items from the SQL table but that is shared by other applications. I could create new SelectMethod code for this app but was hoping to do it in the code behind.
Thank you for your reply.
JTRizos
24-Aug-12 17:03pm
View
Thanx Kuthuparakkal, I did get around the problem I had with the rowediting event. It now goes to the right update program if the added date is before 08/01/2012 but goes to the login screen if the date is after 08/01/2012. A step closer but I still need to determine why it does what it does. Maybe a typo somewhere.
Thanx again for your response, much appreciated.
JTRizos
24-Aug-12 16:59pm
View
Okay, I took all your advice and used VS 2008 to test my code. The bebug works in VS 2008 and I was able to see the value in the cell. As a result, the code works as expected but takes me to the login screen instead. More testing to do.
Thanx for your comments and suggestions. Very helpful. An article on the debugger would be helpful but the debugger is pretty useful once I realized VS 2008 would probably work where VS2005 did not.
JTRizos
23-Aug-12 18:58pm
View
I will try to do that. I did try Console.Writeline with no luck but will try again. I enherited the environment here and it needs to be updated. We use SQL Server 2005 with a lot of Report Services reports. When VS 2008 or newer is used, Reporting Services is not available.
Thanx again for your help.
JTRizos
23-Aug-12 18:48pm
View
I am using Visual Studio 2005 and I run the code using Debug but it kicks out. The application keeps running but the debugger quits. I have read there was a problem with the debugger doing this.
I am curious ... am I on the right track and should this work as I have it coded? Thanx again!!
JTRizos
23-Aug-12 18:15pm
View
I wish I could tell. For the record I selected, it should be 08/22/2012. If this were true, I should not get the error message and my logic should diret the user to the new update screen "~/CallCenter/UpdateCAD_2012.aspx".
Thanx for your question.
JTRizos
17-May-12 12:22pm
View
Thanx Steve Echols, I haven't used a post back on the display screens and haven't needed it in other similar pages. I do use post back in an update program. Having said that, I did try post back in this code and it made no difference.
I appreciate the suggestion, however.
JTRizos
17-May-12 12:21pm
View
Thanx ledtech3, when I use Text=m.text, the result is "Case Number: m.text". Text= works fine in the ASPX code. It's the code behid that seems to be blocked.
Thanx for the suggestion. Much appreciated.
JTRizos
17-May-12 12:20pm
View
Deleted
Thanx Steve Echols, I haven't used a post back on the display screens and haven't needed it in other similar pages. I do use post back in an update program. Having said that, I did try post back in this code and it made no difference.
I appreciate the suggestion, however.
JTRizos
17-May-12 12:18pm
View
Deleted
Thanx ledtech3, when I use Text=m.text, the result is "Case Number: m.text". Text= works fine in the ASPX code. It's the code behid that seems to be blocked.
Thanx for the suggestion. Much appreciated.
JTRizos
17-May-12 12:11pm
View
Thanx Sunny,
I guess I feel a little bit better that it works for you. I'll take your suggestion and see what I find. Seems like such a simple thing to do.
Your suggestion is much appreciated!!!
JTRizos
24-Jun-11 12:41pm
View
Hi SA, I've been trying to get this to work but am missing something. The Kiosk app is a Winform project so all the forms that make it up are within the project. I guess I am stuck on the making the "screensaver a separate form".
This is only my third Winform app that I've programmed so a lot of this is still new to me.
If I make the screensaver a form within the Kiosk project and, based on other C# screensaver projects I've found, I make the .exe file a screensaver by changing the exe to .scr, it seems that will make the whole Kiosk project a screensaver under Windows.
If I make the screensaver a seperate form within it's own project, I do not know how to make control.enable the Kiosk controls.
I am sure I am not understanding something but could you please explain this a little more, I would really appreciate it. I understand what you are suggesting but I am stuck on the HOW.
Thanx for your patience.
JTRizos
24-Jun-11 12:39pm
View
Deleted
Hi SA, I've been trying to get this to work but am missing something. The Kiosk app is a Winform project so all the forms that make it up are within the project. I guess I am stuck on the making the "screensaver a separate form".
This is only my third Winform app that I've programmed so a lot of this is still new to me.
If I make the screensaver a form within the Kiosk project and, based on other C# screensaver projects I've found, I make the .exe file a screensaver by changing the exe to .scr, it seems that will make the whole Kiosk project a screensaver under Windows.
If I make the screensaver a seperate form within it's own project, I do not know how to make control.enable the Kiosk controls.
I am sure I am not understanding something but could you please explain this a little more, I would really appreciate it. I understand what you are suggesting but I am stuck on the HOW.
Thanx for your patience.
JTRizos
22-Jun-11 12:44pm
View
Thanx SA, I hear what you are saying but currently I am using a JPG image we created as the screensaver. What I understand from your suggestion is that the screensaver needs to be a form with the control.enabled to true in it. Correct? If so, won't the control.enable to false in the main form not also disable the control in the screensaver?
Thanx again for your prompt response and with a possible solution I hadn't thought of.
JTRizos
21-Apr-11 14:27pm
View
Thank you for your solution. It was great! As usual with this forum, I learned multiple things with your solution. Very helpful!!!
JTRizos
24-Mar-11 19:02pm
View
Well, I did more digging and found that Citizen has a great layout utility for designing forms. They also have a dll available to C# programs that handles the printing to their thermal printers.
Thanx for your help and advise. I learned a lot about printing. Won't take as long next time I need to do this.
JTRizos
23-Mar-11 17:32pm
View
Thanx to everyone but I am still stumped. I read all the links and tried the following:
printLine = lName + ", " + fName + "\n\n" + reasons;
slip = "\u001B"+"L";
slip += "\u001B" + "W" + "\u0030" + "\u0030" + "\u0030" + "\u0030";
slip += "\u0032\u0030\u0030" + "\u0030" + "\u0031\u0034\u0034" + "\u0031";
slip += "\u001B" + "T" + "\u0030" + "\u000A";
slip += printLine; slip += "\u000C\u0004";
This pretty much matches the Basic sample code already posted. It prints to an attached laser pritner as expected but when printing to a CT-S300 thermal printer, it seems to print one line and then does a partial cut continuously thinking there are hundreds of pages to print. It seems the escape sequences have no affect.
Any other ideas will be much appreciated. Thanx again for your advise.
JTRizos
17-Mar-11 21:26pm
View
Thanx for prompt responses. I will a dig a bit more and post what I find. Although, I looked at using a string with escape sequences like in solution 2 and was not sure how it will work but will test it. I did look through the available documentation for the printer and the sample code is Basic like the following:
100 PRINT #1, CHR$(&H1B);"L";
110 PRINT #1, CHR$(&H1B);"W";CHR$(0);CHR$(0);CHR$(0);CHR$(0);
120 PRINT #1, CHR$(200);CHR$(0);CHR$(144);CHR$(1);
130 PRINT #1, CHR$(&H1B);"T";CHR$(0);
140 PRINT #1, "Page mode lesson2CAN command";
150 PRINT #1, CHR$(&HA);
160 PRINT #1, "ABCDEFGHIJKLMNOPQRST1234567890";
170 PRINT #1, CHR$(&HC);
Doing this in C# has me stumped. Thanx again.
Show More