Goto specific page in PDF using C# Visual Studio -
i'm using axacropdflib.axacropdf tool toolbox , having specific pdf when click button. have separate button (button2) , textbox want use automatically move pdf page page number entered textbox when button2 pressed.
the following code isn't working , i'm not sure code use work (and no cannot use tools inside pdf reader need controls on monitor 1 , pdf displayed on montior 2, i've sorted part):
key: dsm = form2 | pdfview = pdf reader inside form2
dsm.pdfview.setcurrentpage(textbox1.text);
this isn't working. i've tried:
dsm.pdfview.setcurrentpage = textbox1.text;
also not working. great! thanks.
the documentation shows syntax void setcurrentpage(long npage)
you passing string in. need parse string int or long before passing in.
also, based on documentation original method call correct except passed in parameter of wrong type. once convert it, make same call new parameter.
Comments
Post a Comment