1
Answer

asp.net POST method

amrita project

amrita project

17y
2.6k
1
hi all,
    i am doing a project which use the address verification API from USPS.i don't know how to send request and retrieve the response.i am new to this thing.please help me with sample code in c#.

thanks in advance.
Answers (1)
0
Juan Hines

Juan Hines

NA 14 0 9y
What do you mean by "print to pdf file"?
In case you do than check out this article about creating a new pdf file in C#. The article shows how to use an API from this .net's component for word documents and what you can do with its help is that you could first retrieve your table controls html content with RenderControl method and after that you can just directly convert that html content into a pdf format with C#.
0
Raja T

Raja T

NA 7.4k 6k 9y
Hi Sameer,
Please find the attached file .This is use ful for you.
Please check it. For this only send div id/class name only. for example in like below
<div id="ele2" class="b">
<h3>Element 2</h3>
<p>
Some other random text.
</p>
<button class="print-link no-print">
Print this ($.print("#ele2")) and skip the button
</button>
</div>
In function like
$(function() {
$("#ele2").find('.print-link').on('click', function() {
//Print ele2 with default options
$.print("#ele2");
});
Now you can print the document like pdf
 
Thanks