15,892,927 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 s_magus (Top 4 by date)
s_magus
5-Jan-12 23:34pm
View
You will either need to create a setup project as described above to install crystal reports on your machine or find a crystal reports distribution for the version you have. You could also install the crystal reports feature for visual studio by running the installer and choosing to add the crystal reports feature from the installer which i don't believe is 13.0.1.220. I would say to install whatever version you plan to redistribute or use with your application that way you don't run into problems with your application once you actual start to deploy it, because of a wrong version of crystal is being installed that is not compatible with the version you have been testing against.
s_magus
4-Jan-12 16:20pm
View
What are you attempting to accomplish with @datetype? What datatype is @datetype?
s_magus
3-Jan-12 9:31am
View
What version of crystal reports did you make the report with?
What version of Visual Studio are you using?
Do you have the crystal reports feature installed with Visual Studio?
s_magus
28-Jul-11 1:37am
View
You never specified what database you were using so I don't know if the database has them or what they may be called. Scalar-Valued functions are part of MS SQL Server which is the database I use on a day to day basis so it is what I used as the database system to write my solution. A scalar-valued function allows you to pass in parameters and return scalar (single) value such as a date, int, string, etc. In my solution the function DaysOut would return an int representing the number of days out in the time period.
DateDiff returns a number representing the count of the specified datepart for the date range. DateDiff(day, DateLeft, DateReturned) would return the number of days they were gone. Since it returns a number you can Sum the DateDiff to get the total days gone. Sum(DateDiff(day, DateLeft, DateReturned)) As DaysOut