Solving tech problems

How to escape parenthesis/brackets ‘{‘, ‘}’ in string.Format?

Programming

Usually you have something like this: string.Format(“Output: {0}”, “A”); This will result as: Output: A What you should do if you want to make an output like this? Output: {A} You need to escape parenthesis/brackets like this: You use {{ to output { You use }} to output } So, you final C# command should look like this: string.Format(“Output: {{{0}}}”, “A”);

How to Convert HTML to PDF

Products and Services

Almost every SaaS product or service needs to create PDF document in an easy way and sometimes what is an obvious task is not so easy to implement. We are not talking about creating PDF from other programs but creating PDF on-the-fly, for example, when someone buy something in your webshop you want to send him thank you letter together with an attached PDF invoice. There are free and paid solutions to achieve this task. I will cover here only this topic “How to create PDF in Microsoft .NET and…read more