15,901,035 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 Mohamed Sultan (Top 5 by date)
Mohamed Sultan
7-Apr-19 8:24am
View
it was something close to that, when I publish directly from Visual Studio not all files are uploaded, so I published on a local folder on my hard disk then uploaded the publish by FileZilla and it worked fine!
Mohamed Sultan
3-Apr-19 5:58am
View
Imports System.Net.Http.Headers
Imports System.Web.Http
Imports System.Web.Http.Cors
Public Module WebApiConfig
Public Sub Register(ByVal config As HttpConfiguration)
' Web API configuration and services
config.EnableCors(New EnableCorsAttribute("*", "*", "*"))
' Web API routes
config.MapHttpAttributeRoutes()
config.Routes.MapHttpRoute(name:="ControllersApi", routeTemplate:="api/{controller}/{id}", defaults:=New With {.id = RouteParameter.Optional})
'config.Routes.MapHttpRoute(
' name: "ControllersApi",
' routeTemplate: "api/{controller}/{action}/{id}",
' defaults: New { id = RouteParameter.Optional }
');
config.Formatters.JsonFormatter.SupportedMediaTypes.Add(New MediaTypeHeaderValue("text/html"))
End Sub
End Module
Mohamed Sultan
10-Sep-16 8:31am
View
here's an working example I've just figure it out, but i think there's must be an easier way:
SELECT TOP (1) { fn REPEAT(0, LEN(ItemId) - LEN(MAX(ItemId) + 1)) } + CAST(MAX(ItemId) + 1 AS varchar(7)) AS Expr1
FROM Items
GROUP BY ItemId
ORDER BY ItemId DESC
the last query gives the correct result "0004916"
Mohamed Sultan
11-Jul-12 4:45am
View
i tried only crystal reports and Word, i adjusted the setting to landscape orientaion and i use the driver for the CD that came with the printer
Mohamed Sultan
20-Oct-10 3:49am
View
Thanks Kschuler for your reply,
I've already suppressed all sections except 'Details' section, but when i open section expert of the 'Page footer', Paging tab i find 'New Page After' checked by default and i can't remove the check from it, i think maybe it's the problem... by the way i'm using crystal reports 2008.