6
Answers

How to pass Empty Decimal Value?

Raja

Raja

7y
329
1
I have use below two for Allocate empty value to string and pass the empty string value.

string test = "";
string test1 = string.Empty;
 
But i use decimal as empty

decimal test3 = ""; 
this is show
Cannot Implicitly convert type 'string' to 'decimal'
 and try another to refer in  online to use for fix this 
 
string test1 = string.Empty;
decimal test2 = decimal.Parse(test1);
but it shows 
Input string was not in a correct format. 
Answers (6)
0
Rajeesh Menoth

Rajeesh Menoth

NA 24.7k 629.4k 9y
Hi,
 
You can use "Spire.Pdf".Check the following reference.
 
Example :
 
http://codepedia.info/2015/08/create-pdf-in-asp-net-csharp-spire-net-turn-html-to-pdf/
 
https://rajeeshmenoth.wordpress.com/2015/06/24/convert-pdf-to-other-format-using-spire-pdf/
 
The answer is helpful.Then please accept it..!!
 
0
Aarush Rahaan

Aarush Rahaan

NA 2 0 9y
If you mean you want to convert HTML page to PDF, I found the following links that might help:
https://code.msdn.microsoft.com/Convert-from-HTML-to-PDF-09ce2a1d#content
http://www.c-sharpcorner.com/forums/how-to-convert-html-to-pdf-in-c-sharp

If this is not what you are trying to do, provide more details about what you want.
0
Vivek Kumar

Vivek Kumar

NA 7.6k 729.7k 9y
Hi Ronak
Please once see my article for your reference. 
 
http://www.c-sharpcorner.com/UploadFile/f4f047/generating-pdf-file-using-C-Sharp/ 
http://www.c-sharpcorner.com/blogs/create-table-in-pdf-using-c-sharp-and-itextsharp 
 
You can set border none as per your requirement if your are using table
 
 
---------------------------------------------------
If this post helps you, mark it as answer
 
0
Suresh M

Suresh M

NA 18.6k 1.5m 9y
You need use any library for creating PDF 
Sample http://csharp.net-informations.com/file/create-pdf.htm