Copy link to clipboard
Copied
var sprite:Sprite = new Sprite();
var tf:TextField = new TextField();
tf.text="中文123";
sprite.addChild(tf);
var job:PrintJob = new PrintJob();
if (print.start())
{
job.addPage(sprite);
job.send();
}
when use ppapi,npapi,text can not print,very serious bug!!!
flash.text.engine.TextLine,flash.text.engine.TextLine
has the same problem.
Please help me,help me!
Copy link to clipboard
Copied
Versions, browsers, platforms?
Define "can not print"?
Copy link to clipboard
Copied
WIN10,chrome v72,Adobe flash player 32.0.0.142,
var sprite:Sprite = new Sprite();
var tf:TextField = new TextField();
tf.text="abcd123";
sprite.addChild(tf);
var job:PrintJob = new PrintJob();
if (job.start())
{
job.addPage(sprite);
job.send();
}
textfield print blank,line can be print,but textfiled become blank.
IE work correctly. This bug appear long time ago,begin at ppapi v24.
Copy link to clipboard
Copied
You can us chrome login my system,test anyone print work.
[Personal Information banned]
another server
[Personal Information banned]
And then use IE login,do anyone print work,to compare previous result.
Copy link to clipboard
Copied
Printing support in Chrome (via PPAPI) is very limited. The PPAPI specification is frozen, and Google's agenda is to deprecate Flash support in the browser. You're welcome to file a bug, but it's a browser limitation, and unlikely to get fixed.
My recommendation, given that it's 2019 and we're rapidly approaching the end of the Flash lifecycle, would be to render your output in HTML and JavaScript and print from there. You could use ExternalInterface to invoke that activity from Flash, and JavaScript libraries targeting HTML5 Canvas for rendering complex graphics, barcodes, etc, or maybe assemble a ByteArray of what you want to print and push that over to JavaScript for rendering as an image.
Copy link to clipboard
Copied
I don't agree with you because the line can be printed.
I suggest you test again. I think it's FLASH's BUG itself, not chrome's limitation.
Copy link to clipboard
Copied
You have less than one year to find a complete alternative to Flash, so why are you worrying about this detail?
Copy link to clipboard
Copied
@jeromiec83223024 is the Adobe Flash expert, so what he's saying is the closest reason of your issue.
I think your answer is not relevant...
Copy link to clipboard
Copied
Who are you?
Copy link to clipboard
Copied
Pig
Copy link to clipboard
Copied
what platform can instead RIA? SLIVERLIGHT?
Copy link to clipboard
Copied
You mean FLASH will stop updating by 2020?
Copy link to clipboard
Copied
I use ppapi v11.6 instead of v32.0.0.142 to test,Text can be printed.
360浏览器 7.1.1.550
I use this explorer to tested.
Copy link to clipboard
Copied
I want to ask you,why line can be printed?
Can you give me a satisfactory answer?
Please help me,please!
Copy link to clipboard
Copied
The right answer was Jeromie's comment.
as Flash PPAPI is a chrome builtin API so you should contact Chrome google developers about your issue.
Copy link to clipboard
Copied
You're welcome. Silverlight ceased development in 2013. I believe that to have the smallest chance of this all happening again, HTML5 is the way to go, even if it limits inventiveness.
Copy link to clipboard
Copied
HTML5 never been a substitute of Flash, it's HTML5 + JAVASCRIPT
Copy link to clipboard
Copied
You fools, if you use FLASH to develop a set of ERP, you will earn more than SAP.
Copy link to clipboard
Copied
HTML5 can developing RIA management system, such as ERP System?You have a dream!!!!!
HTML5 can print account book to printer directly? No,it is Impossible!
Even if you stop developing, our system will use FLASH until the WINDOWST system does not exist.
Copy link to clipboard
Copied
You fools, if you use FLASH to develop a set of ERP, you will earn more than SAP.
Copy link to clipboard
Copied
Flash will go away by 2020. Some browser makers have an earlier target. Adobe have no say in this now, the browser makers are blocking it one by one. Already they are making it difficult. Still think there is a fortune to be made?
Copy link to clipboard
Copied
Life is made of miracles, why not on computers?
Copy link to clipboard
Copied
FLASH stopped updating in 2020. Will the download server be turned off?
Copy link to clipboard
Copied
Miracles can happen. When they do I plan to seize them. But a plan to rely on them might prove hard to justify to stockholders.
Copy link to clipboard
Copied
Whether the download server is turned off is an interesting question. But would you keep running an old version if security problems are no longer fixed? Every hacker in the world will see you and your customers as an easy target.
But it is almost unimportant (for the developer making choices) whether the server is turned off because all major browsers will block Flash before the end. Most major browsers now auto update so users will simply not be able to choose to use Flash.