Click here to Skip to main content
15,901,035 members

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.