Specify page range for JSPrinterManager - jspm

I am trying to print a file from a website, when clicking on the print button it asks me to download JSPrinterManager which I did. Now when I click I print (after installing JSPM) it directly sends a print request to my printer which even allowing me to select the page range, color, etc...
Can I anyone help me find a way to specify a page range?
Regards

Related

Microsoft access Search Box

Hello to everyone and happy new year! Back to work!
I am using a search box in microsoft access form where from my selection to return some details.
Also I am using a text frame as control for the user's selection.
My problem is that from the search box waterfall where the data are, the text frames are not updated.
I also attached a screenshot for that I described.
enter image description here
I expect from my selection to update the values of the text-boxes. I already select the right fields from the table. Thank you.

How to select a value from a pop screen and bring back to main screen in excel VBA through Selenium

I have a web form in which I need to enter repetitive data to configure the application and I am writing an excel macro in VBA to achieve this.
Data entry to all fields went well except one field. The field contains a pre-validated list of values, so there are two values SALES and SALES_TAX and when I put SALES, it opens up a pop up screen to select either through image or a radio button to bring the value back to main screen.
I could not able to achieve it and need some help on this please.
Thanks
AM
I am uploading a screenshot and few commands which I tried as below but failed to achieve the desired result,
Sceenshot
driver.FindElementByXPath("//input[#class='xo' and #id= 'N1:N8:0']").Click
driver.FindElementByXPath("//input[#id='N1:N8:0']").Click
driver.Actions.Click ("/SALES")pe here

Clicking checkbox on an intranet web page not working in VBA using Internet Explorer 11

I am stuck at a specific point in coding VBA. Using VBA I am logging onto an Intranet portal which is a file management system and opening a series of dynamic web pages one after the other. Using VBA I am trying to get a checkbox element checked. Once this element is checked, all sub-elements appearing in a table below get checked automatically. After this I need to initiate download of all the selected files. However, I cannot get the checkbox element "checked".
Here is the HTML as it appears on the web-page. I cannot share the link as it is intranet and confidential.
Link to the HTML as I am not allowed to post images yet
Here is my VBA code:
Set inpute = objIE.Document.queryselector("div[id=gridx_Grid_2] div div div table tbody tr td span[aria-checked=false]")
inpute.setAttribute("aria-checked") = True
inpute.Click
When the above code is run, the "aria-selected" attribute changes to "true" in the HTML but Click has no effect on the checkbox.
I have tried using the getElementbyClassName method and using Click after that to no avail.
Please help me out on this issue. Do let me know in case you need any other information.
This solution from Zwenn worked perfectly:
First of all, a checkbox has no click event. On topic: Because the whole List of other checkboxes will be marked by marking the one in question, I'am pretty sure the one in question triggers a HTML event like change when you mark it manually. You must check which event it is and trigger it with VBA. You can look for the event with FireFox or Chrome, but not with the IE. Look here how to do that and how to handle with events:
Automate IE via Excel to fill in a dropdown and continue
– Zwenn 14 hours ago

How to scrape data from webpage without inspect function?

I'm trying to scrape all data from the link below.
http://aeroportos.weebly.com/fuel-prices.html#.W7JVkWj7Sbi
However, it seems like there is no option to perform right click, inspect & then us BeautifulSoup...
Any tricks on how to deal with this?
Example on data I would like to scrape (for all rows)
So i'm trying to create an output with in the rows all locations, and columns all prices / codes / ...
Many thanks!
Sibren
I have checked your site you can make a right click on the option that are on the top for selection of menu, and then drag down to div. Then from this div you can extract your required elements or you can copy your xpath.
Right click on the blue "Home" tab. You will be able to click "inspect"

Report Hyperlink to a field on a custom page

We have a custom page in our Acumatica to enter Work Orders. The first field on the page is obviously the WO number. I have the WO number on many of the custom reports we have made. I tried to hyperlink to the WO number on one of my reports by changing the NavigateMethod property to Server as I have done for the SO number many times. The WO displays on the report as a hyperlink but clicking on it produces nothing. Right clicking and choosing open in new tab opens a tab for about.blank. What do we have to do so that the WO number will produce the same behavior in the report as, say, the SO number from the Sales Order Entry page?
Sometimes the above solution won't work (most probably if you route to your own custom screen),
I think the proper implementation is using Main.aspx? in the Navigate URL
and no need of Server navigate method
So your navigate URL will be for Standard Acumatica screen (Invoices and Memos-AR301000)
Navigate Method: Client
Navigate URL: 'Main.aspx?ScreenId=AR301000&DocType=INV&RefNbr='+ [ARInvoice.RefNbr]
Target:either main or _blank
follow the same way to compose the URL for custom screens as well
On a TextBox field use the following three properties:
NavigateMethod, NavigateUrl and Target
Here is an example for a PO:
NavigateMethod: Server
NavigateUrl: ='?ScreenId=PO301000&OrderNbr=' + [POOrder.OrderNbr]
Target: _blank
You can craft the NavigateUrl by going to the page you want to redirect to in Acumatica and selecting the key (ex: the WO field). Then you can copy the URL param from the browser URL bar to your report NavigateURL property. Replace hardcoded key with the WO parameter in your report by concatenating it in NavigateUrl formula.
Target is the standard hyperlink target property, '_blank' will open the link in a new page.
Target reference:
https://www.w3schools.com/Jsref/prop_form_target.asp

Resources