syncfusion

c# - How to create an image from a pdf rectangle

随声附和 提交于 2020-01-17 03:36:07
问题 is there a way to create an image based from pdf using rectangle? im using syncfusion pdfviewer(using the Unlimited Flat-Fee License). and this is how i create an image from pdf using c# private void ScreenCapture(string fileName, int x, int y, int width, int height) { try { if (x != 0 && y != 0 && width != 0 && height != 0) { Rectangle rect = new Rectangle(x, y, width, height); Bitmap bmp = new Bitmap(rect.Width, rect.Height, PixelFormat.Format32bppArgb); Graphics g = Graphics.FromImage(bmp)

C# Generated Excel File: File Format or File Extension is not valid

夙愿已清 提交于 2020-01-14 05:42:07
问题 I'm calling the action "Export" where i pass a list of viewmodels and define the format public ActionResult DownloadTokenlist(string startDate = null, string endDate = null) { using (HRCTSStatisticDb db = new HRCTSStatisticDb(Setting.ClientId)) { List<TokenExportViewModel> tokenExportViewModels = new List<TokenExportViewModel>(); Response.AddHeader("content-disposition", $"attachment;filename=Tokenlist_{DateTime.Now.ToString("dd.MM.yyyy")}.xlsx"); log.InfoFormat($"The {new HomeController()

Typescript debugging not working in Visual Studio 2017

混江龙づ霸主 提交于 2020-01-05 03:04:27
问题 I'm using Visual Studio 2017 version 15.5.7 for my .NET web API project and I'm using Syncfusion's angular controls with systemJS for UI. Problem is, that I cannot debug typescript at all. I can place a breakpoint and it appears like normal regular breakepoint until i hit debug, then it becomes unavailable with message: The breakpoint will not currently be hit. No code has been loaded for this code location. I tried debugging with Chrome, Firefox, Edge and IE, but to no avail. .map files are

Use Hidden field in syncfusion column chart series

让人想犯罪 __ 提交于 2020-01-03 19:15:52
问题 I am using syncfusion in ASP.NET MVC for my application to display chart and I done it well. Now I have to set hidden field for every chart that generated on every axes and want to get that hidden field's value on click function call of chart. Controller: public ActionResult SyncfusionChart() { List<ChartData> data = new List<ChartData>(); data.Add(new ChartData("Jan", 35, 1)); data.Add(new ChartData("Feb", 28, 2)); data.Add(new ChartData("Mar", 34, 3)); data.Add(new ChartData("Apr", 32, 4));

Blazor problem rendering data returned from Web Api

邮差的信 提交于 2019-12-24 00:44:55
问题 I'm hoping someone can suggest how I might figure out where this underlying problem is. I think it's serialization/deserialization not the grid. I am trying to render data returned from an ASP.NET Web Api using a Syncfusion Blazor Grid Component. The JliffDocument is from an open source library. Perhaps the fact that the object is made from composite types is a contributory factor but I can successfully serialize and deserialize the object graph within a unit test. E.g. TextElement implements

Can't use Syncfusion assembly in project

馋奶兔 提交于 2019-12-19 08:14:29
问题 I tried to use this code, to include Syncfusion Charts to the project xmlns:charting="clr-namespace:Syncfusion.UI.Xaml.Charts;assembly=Syncfusion.SfChart.UWP" but I get an error: Undefined type "SfChart" in XML namespace "clr-namespace:Syncfusion.UI.Xaml.Charts;assembly=Syncfusion.SfChart.UWP" If I use standard using everything ok, but app package is too big, I don't need all controls from Syncfusion SDK. xmlns:charting="using:Syncfusion.UI.Xaml.Charts" 回答1: It works fine with the following

How to bind data to SyncFusion GridControl in C# using Windows Application?

帅比萌擦擦* 提交于 2019-12-13 23:44:05
问题 i am fed up with this Syncfusion Controls, these are very difficult compared to normal datagridview. where is the Datapropertyname in Syncfusion GridControl. how to bind Data to Grid Control. gridControl1.ColStyles[3].DataSource = dt1; gridControl1.ColStyles[3].DisplayMember = "bcmp_Name"; gridControl1.ColStyles[3].ValueMember = "bcmp_Id"; gridControl1.ColStyles[3].DropDownStyle = Syncfusion.Windows.Forms.Grid.GridDropDownStyle.Exclusive; gridControl1.ColStyles[5].DataSource = dt2;

Webpack solution for SystemJS mapping

我是研究僧i 提交于 2019-12-13 07:25:57
问题 The release of AngularCLI abandon SystemJS in favor of WebPack. However SyncFusion hasn't supported WebPack yet in there EJ2 library for Angular. They instruct to use SystemJS to map "@syncfusion/ej2-grids": "node_modules/@syncfusion/ej2-grids/dist/ej2-grids.umd.min.js", "@syncfusion/ej2-ng-grids": "node_modules/@syncfusion/ej2-ng-grids/dist/ej2-ng-grids.umd.min.js", in this tutorial http://ej2.syncfusion.com/angular/documentation/grid/getting-started.html#configuring-system-js How can I work

Cannot load type from load type 'System.Drawing.Font' from assembly 'System.Drawing, Version=4.0.0.0

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-12 04:24:54
问题 I know there are similar questions but i couldn't find the answer so i will ask a specif question. I have a simple .net core console application. I'm using the Syncfusion.DocIO.Base and Syncfusion.Core assemblies to create a WordDocument from a stream like this: var word = new WordDocument(rtfStream, FormatType.Rtf); here i get the error message: Could not load type 'System.Drawing.Font' from assembly 'System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'.' Do you

How to bind to autocomplete selecteditem with ObservableCollection

流过昼夜 提交于 2019-12-11 19:15:46
问题 I'm currently implementing autocomplete box from syncfusion. The current selection mode is set to Token <autocomplete:SfAutoComplete x:Name="autoComplete" DisplayMemberPath="Location" MultiSelectMode="Token" HeightRequest="120" HorizontalOptions="FillAndExpand" TokensWrapMode="Wrap" SelectedItem="{Binding SelectedLocation}" DataSource="{Binding FilteredLocations}" Text="{Binding SearchLocation, Mode=TwoWay}" > </autocomplete:SfAutoComplete> I'm currently using MVVM approach, how do I bind to