Does PrintJob work in c++?

I am getting nothing back from it. Is it just a flash/html5 thing ?

var printJob:PrintJob = new PrintJob();

	try
	{	
		if (printJob.start())
		{
			trace("IN 1");
			if (backgroundpromo.width > printJob.pageWidth)
			{
				trace("IN 2");
				backgroundpromo.width=printJob.pageWidth;
				backgroundpromo.scaleY=backgroundpromo.scaleX;
			}
			else
			{
				trace ("NOPE 2");
			}
   
			printJob.addPage(backgroundpromo);
			printJob.send();
			trace("IN 3");
		}	
		else
		{
			trace ("NOPE 3");
		}
	
	}
	catch (e:Dynamic) {trace(e); }

Just puts out “NOPE 3”, no print dialog comes up. It’s all crickets.

So I was looking into this and noticed that in the haxe api Printjob says it’s only available for flash, but in the openfl api it says Available on all platforms. So maybe it isn’t and it is an oversight on the api documentation ? Has anyone tried this from cpp ever ?

Edit 1: maybe I’m missing some extra step to be able to do it in cpp ?

I think to documentation is wrong.

Thanks @loudo, was wondering if that was the case after reading up the haxe api.

I think this is implemented on HTML5

Was getting mixed results on HTML5, will have to dig further in. Thanks @singmajesty.