1
Answer

How to print directly in Asp.net MVC

Vaikesh K P

Vaikesh K P

9y
820
1

Hi, 

I'm developing application with asp.net MVC Technology.
Its a inventory application I have done some printing options including bar-code, but i cant print directly.
I'm using window.print.
When fire this function chrome will show another popup (default web printing popup) for print.
Then again i want to click print then only i can print.
Our client not ready to do something like that.is any other way to print directly or can i go with java script
 

What I have tried 
I tried JavaScript :
Window.print()
Answers (1)
0
mali

mali

NA 85 0 16y

everything ok;

my answer to my question work fine.

if you still want me to send you the webmathod just say or post

0
Ryan Alford

Ryan Alford

NA 2.3k 891.7k 16y
could you post the webmethod code?
0
mali

mali

NA 85 0 16y

the Idea is to update the data via textBox, and after a few experiments this is what I find:

ws.wupdate(this.txtEmail.Text, this.txtPassword.Text, (int)int.parse(this.txtCommission.text);

because I have more error I can't say for sure if its work, but for now I at least can compile

 

0
Niradhip Chakraborty

Niradhip Chakraborty

NA 6.5k 527k 16y
Can you please explain it further?