Cryy
Cryy
CC#
Created by Cryy on 3/18/2024 in #help
Moving to GIT
No description
48 replies
CC#
Created by Cryy on 2/23/2024 in #help
.NET tool/library for communication/network logging
Hye guys, I was asked to do some "research" to find some fancy/cool way to logging communication between our application and webservices, external services, stuff like that. Original idea was just log requests/responses, some data to database but It turned out not to be ideal. Is there some standard way how to achieve that, maybe some third party library u use in your projects ? I'd really appreciate some input/advice. Thank you 🙂
15 replies
CC#
Created by Cryy on 1/1/2024 in #help
Windows 11 Dev Drive - file types
Hey guys, anyone using Dev Drive on Windows ? From what I heard it supposed to used only for source codes but is there any real catch if I use it also for storing unity assets, DB backups, bunch of different files ?
6 replies
CC#
Created by Cryy on 10/11/2023 in #help
❔ Docx behave differently after being rezipped
Hi, I'm trying to convert docx file -> PDF by using some library but there is an weird issue. Final PDF is generated without one picture in footer that is present in original docx file. But, it works correctly of I do one of these things: 1) open docx and than save it (save as) again, so new file works 2) unzip and than zip docx file to the new file by using System.IO.Compression.ZipFile. In first case I can see some differences in docx unzipped xmls but in second case everything seems to be the same so I really dont understand why that make a difference. Any idea why is that happening ? Thanks
2 replies
CC#
Created by Cryy on 9/9/2023 in #help
❔ Tabs in GemBox.Document
Hey guys, I'm "migrating" from Syncfusion to Gembox.Document and everything works fine but I have some issue with creating footer. Our previous code for syncfusion created footer using Tabs like this:
var footerPar = section.HeadersFooters.Footer.AddParagraph();
footerPar.ParagraphFormat.Tabs.AddTab(410f, TabJustification.Centered, TabLeader.NoLeader);
footerPar.ParagraphFormat.Tabs.AddTab(820f, TabJustification.Right, TabLeader.NoLeader);

var left = footerPar.AppendText("Some text\t");
ApplyNormalStyle(left.CharacterFormat, false);

var center = footerPar.AppendText($"Some date \t");
ApplyNormalStyle(center.CharacterFormat, false);

var right = footerPar.AppendText(" Page ");
ApplyNormalStyle(right.CharacterFormat, false);
var footerPar = section.HeadersFooters.Footer.AddParagraph();
footerPar.ParagraphFormat.Tabs.AddTab(410f, TabJustification.Centered, TabLeader.NoLeader);
footerPar.ParagraphFormat.Tabs.AddTab(820f, TabJustification.Right, TabLeader.NoLeader);

var left = footerPar.AppendText("Some text\t");
ApplyNormalStyle(left.CharacterFormat, false);

var center = footerPar.AppendText($"Some date \t");
ApplyNormalStyle(center.CharacterFormat, false);

var right = footerPar.AppendText(" Page ");
ApplyNormalStyle(right.CharacterFormat, false);
but i dont know how to recreate this using GemBox. I'm trying it using Run instances but I dont how how to add SpecialCharacter to it so it does not looks like it should. Any experience with that ? Thank you
2 replies
CC#
Created by Cryy on 9/9/2023 in #help
❔ Log4Net stopped works
Hey guys, any experience with log4net ? It stopped logging to DB from version 2.0.14. I tried previous version and it works fine but after update to 2.0.14 it does log nothing to DB (works for file though). After rollback everything is ok. Any idea why ?
3 replies
CC#
Created by Cryy on 8/6/2023 in #help
❔ Free .NET library to convert Word/Excel files to PDF
Hey guys, is there any free library to convert Word/Excel files to PDF available ? Currently we are using Synfusion libraries but we are looking for something inexpensive or even free. Any ideas ? 🙂 Thanks
15 replies
CC#
Created by Cryy on 12/28/2022 in #help
❔ Visual Studio extension
3 replies
CC#
Created by Cryy on 11/15/2022 in #help
❔ Sort dictionary according to the list of string (sorted keys)
Hey guys, I have a list od strings in specific order and dictionary with keys that each of keys is one of the string from the list. Is there any effective way to sort the dictionary according to the list of strings ? Thank
5 replies
CC#
Created by Cryy on 11/2/2022 in #help
Creating DataTable columns dynamically - C
Hey guys, currently I have an implementation of jQuery DataTables that wont allow to add columns dynamically. Now I need that fhe option to generate columns based of result of Linq query (database query result) but I'm not sure how to implement repositoy method for that. It's a good idea to put these dynamic columns into Expando object ? Thanks
1 replies
CC#
Created by Cryy on 10/25/2022 in #help
Parsing string to TimeSpan
Hey guys, I'm trying to parse some string to TimeSpan . Input string is "01:02:01" and I'm trying it to parse to TimeSpan structure like this TimeSpan.ParseExact(inputString, "dd:hh:mm", CultureInfo.InvariantCulture) (expecting days:hours:minutes) but I got "Input string was not in a correct format." exception. What I'm doing wrong ? Thanks
18 replies
CC#
Created by Cryy on 8/18/2022 in #help
Automapper 9.x.x - 10.x.x
1 replies
CC#
Created by Cryy on 8/17/2022 in #help
Autofac 5.x.x - 6.x.x
1 replies