How can I print in black & white?
Solution 1
That is a property of the printer.
When you choose to print, do not select Quick Print
. Use the printer dialog and adjust print properties there. Somewhere in there is a choice to print in Grayscale.
Not sure what you're using but this is what mine looks like.
Solution 2
Generally, printing preferences aren't specific to a program and you may need to go to Printer Properties
to get when you are looking for. I can't say how to do if for your specific printer since most settings dialogues are set up differently (edit: As demonstrated by mine vs @CharlieRB), here is how mine looks:
Then the Printer Properties (this is an old HP):
Related videos on Youtube
Karthi
Updated on September 18, 2022Comments
-
Karthi almost 2 years
I'm fetching data from server using axios.post method but it returns early .I have used async and await but data is not updated
apiService.js
export const getAppAuthUser = async (page, authorizedType) => { await axios.post(APIURL.apiURL, JSON.stringify({ page: page, authorized: authorizedType }), { headers: { 'Content-Type': 'application/json' } }).then(res => { console.log(res); return res.data; }).catch(err => { console.log(err); }); }
component.js
import * as Users from '../api/apiService'; class User extends Component { sortedInfo = {}; componentDidMount() { this.data=Users.getAppAuthUser(1,true); console.log(this.data); } }
when I console it return Promise {}
Please help
-
Cyberson almost 10 yearsFor me, I had to go under advanced settings and then it was a checkbox.
-
Michael over 7 yearsoh brother. for some reason my printer doesn't have any such dialog in windows (it does under OS X!), and it's out of color ink so it refuses to print a text document which has no color because it's not explicitly able to be told to print b&w.
-
Karthi almost 5 yearsYes your right..Can we use data await inside setState() like this :- this.setState({ data: await Users.getAppAuthUser(1,true)});
-
Nicholas Tower almost 5 yearsIf the code is surrounded by an async function, yes.
-
Karthi almost 5 yearsIts calling api 2 times
-
Karthi almost 5 yearsif we follow this way how to error handle.like if api throws bad gateway ,in this case how to handle it
-
Nicholas Tower almost 5 yearsError handling goes in the catch block. I mimicked your code and kept the catch inside getAppAuthUser, but if you prefer you could delete it from there and do the catch in componentDidMount.