- Sathishkumar S
- PowerBuilder
- Tuesday, 8 February 2022 11:45 AM UTC
Hello!1.In web browser control, PB 2019 R3 while printing from user event unable to print from print().
I am having web browser control to display pdf documents(which is converted from images and docs). which has to be stamped then to print from the user event instead of using the print icon in the web browser control.
I am using citrix development environment
I am using below function unable to do printing
wb_1.navigate( 'file:///' + ls_temp )
print() --> I am getting print dialogue to click print but the printing is not happening(only one activity)
but if I use the below codes I am able to print with 2 steps
I have to select the printer from PrintSetup() then I have to print it from the print() function,
in this case user have to select printer once then have to click print (the user have to do 2 activities [selecting the printer and then click print] instead of just 1 activity like print)
wb_1.navigate( 'file:///' + ls_temp )
PrintSetup() --> Activity 1 selecting the printer
print()--> Activity 2 Print
Kindly help me with any alternate way.
I have also tried below code to setup the printer but still unable to get the result
long ll_place
string ls_setprn
string ls_prntrs = PrintGetPrinters ( )
ll_place=pos (ls_prntrs, "~n")
mle_1.text = PrintGetPrinters ( )
ls_setprn = Left (ls_prntrs, ll_place - 1)
PrintSetPrinter (ls_setprn)
2. Is there way to access the print icon in the web browser control.
Is there any way to access the print icon in the web browser control to manipulate some additional activities(adding stamp before printing it).
3. Is there any tutorial or help document which I can refer for web browser control
Thank you,
Sathishkumar
Find Questions by Tag
Helpful?
If a reply or comment is helpful for you, please don’t hesitate to click the Helpful button. This action is further confirmation of their invaluable contribution to the Appeon Community.