ZJRP.COM welcome to my space |
HOME Printing problem ! |
| Printing problem ! | | Published by: rose 2010-03-15 |
| | Hi,
I have frustrating problem with printing. In attachment you have example file.
So, I have one dynamic text field inside MC. Text field is filled from txt file (myText.txt), also one picture is attached to text. When I print this text field I always get rectangle below text in color of Scene background color!???!! Printing problems - SillyDog701 Message Centre:: Printing problems I never any problem with printing with my HP Deskjet695, to illustrate that if there are printing problems, there is no simple answer. http://sillydog.org/forum/sdt_5525.phpHOME | Troubleshoot printing problems in Acrobat and Adobe Reader (8.0, 3D :: Resolve problems printing any file from any application Resolve problems printing any PDF file to a non-PostScript printer http://kb.adobe.com/selfservice/viewContent.do?externalId=333214&sliceId=2HOME |
Anyone knows what is problem here?
Thanks,
Remove your background color out of that MC (text_mc) and it won't print like that. Put it on a layer below your MC not inside the MC, and get rid of the border.
Unfortunately its not background inside text_mc that makes problem. Ive deleted layer with background inside text_mc, and still on printed page you can see rectangle below text.
If I turn off border around text than there is big rectangle below text because text field is transparent then.
I could avoid that transparency with use of background of text field before printing and turn it off after printing but, problem is that flash prints not only text field but also it print rectangle about 100px height and same width as text field.
I didn't download your file cause I don't have f8 on this comp... but I did this example for DQS a couple months back.
http://www.beyondthepixel.com/downloads/dqs/dqs_print/
http://www.beyondthepixel.com/downloads/dqs/dqs_print/dqs_print.zip
You can find some accurate documentation on it here:
http://www.macromedia.com/support/flash/action_scripts/actionscript_dictionary/actionscript_dictionary628.html
I am using the following code to print frame 21 in Scene 2 of my application. However, when the button is pressed, it reverts back to Scene 1 and prints frame 21 from that. How can I correct this???
on (Release) {
var pj = new PrintJob();
var success = pj.start();
if(success)
{
pj.addPage(0,{xMin:130, xMax:930, yMin:0, yMax:1100}, {printAsBitmap:false}, 21); Printing Problems:: Printing problems. Home. Online Banking Info. CECU Checking Now is the time for all good men to come to the aid of their country. Problems Printing Forms http://www.cessnacu.net/PrintingProblems.phpHOME | Resolving Windows printing problems:: Resolving problems printing any file from any applicatio If youre having problems printing an individual PDF file, do one or more of the following: http://harris-cnty.tamu.edu/mg/urban/docs/winprintp.pdfHOME |
pj.send();
}
delete pj;
}
Can someone please help......
Thanks simplistik for idea! :) Finally I manage to get clear text, although Im mad on macromedia because of this bug that cost me a lot of nerves ;)
Thanks.
:lol: I dunno about bug... but I would've suggested that right away but I thought it was already a bg... not the stage color... that was until I tried to delete it and almost wasted 2 minutes until I figured out it was the stage color that was grey and not an object :lol:
Ew... don't use scenes.
By passing '0' to your target parameter, you are telling it print that level. Also, at compile time, I believe that scenes are, in fact, pretty much concatenated together on a large timeline. I'm not sure about this, so you may want to check.
All I know is this: Macromedia sez - Don't yuse frames! :puzzle: Network Printing Problems:: Users frequently have problems printing from a Windows 95 workstation to a Using NetWare print services can dramatically reduce network printing problems. http://support.novell.com/techcenter/articles/nc1998_02d.htmlHOME |
Remove your background color out of that MC (text_mc) and it won't print like that. Put it on a layer below your MC not inside the MC, and get rid of the border.
mx04 version doesn't work for me either it comes up as 0kb
sorry,
my mistake. Now it's ok !
mx04 version doesn't work for me either it comes up as 0kb
Oh... try...
print_btn.onRelease = function(){
{
var pj = new PrintJob();
var success = pj.start();
if(success)
{
pj.addPage("text_mc.my_txt",{xMin:0,xMax:600,yMin:0,yMax:800}
);
pj.send();
}
delete pj;
}
}
And just as a side note I haven't been wasting paper to print these :D :lol:
I didn't download your file cause I don't have f8 on this comp... but I did this example for DQS a couple months back.
http://www.beyondthepixel.com/downloads/dqs/dqs_print/
http://www.beyondthepixel.com/downloads/dqs/dqs_print/dqs_print.zip
You can find some accurate documentation on it here:
http://www.macromedia.com/support/flash/action_scripts/actionscript_dictionary/actionscript_dictionary628.html
Hi Simplistik,
Unfortunately old fashion printing (like this sample, printing particularly frame) style dont fit to my project. Most of application is made dynamically so the text fields are.
I use PrintJob Class.
In attachment is MX2004 version, so when you will have time to look up
Thanks,
I would test it, only if I had a printer :)....
Here's what i've used for my last project, maybe it helps you
printGraph.onPress = function() {
var pj:PrintJob = new PrintJob();
pj.start()
if (pj.addPage(this._parent.paper)) {
trace("Printing. Please Wait...");
} else {
trace("Error printing. Check your printer settings");
}
pj.send();
delete pj;
};
The movie clip paper had a widht of 595 pixels and a height of 842.. default print sizes for A4 page.
You could draw a white rectangle that size behind the page.. and it sure won't dispay anymore of your background...
Oh... try...
print_btn.onRelease = function(){
{
var pj = new PrintJob();
var success = pj.start();
if(success)
{
pj.addPage("text_mc.my_txt",{xMin:0,xMax:600,yMin:0,yMax:800}
);
pj.send();
}
delete pj;
}
}
Setting up margins doesnt help too, I tried all options before.
And just as a side note I haven't been wasting paper to print these :D :lol:
I see you didnt :)
Anyway thanks for efforts to solve this problem.
Quick note... I don't have a printer here, but I worked with the PJ class.
addPage takes as a parameter a MovieClip.
This means that the folowing line is wrong
Hi virusescu,
Although in help stays that parameter must be movie clip you can pass text field too. That works.
Even if I put only MC(text_mc) as parameter theres still rectangle below printed text.
You should also check the pixel To twips conversion, if you want to be able to control the positioning and the final aspect of you printed page.
I really tried all combinations, nothing helps.
Please if you can try my example and if you can get clean text without any other things please send me modified code for review.
Thanks !
print_btn.onRelease = function(){
{
var pj = new PrintJob();
var success = pj.start();
if(success)
{
pj.addPage("text_mc.my_txt");
pj.send();
}
delete pj;
}
}
Please try to print and you will se rectangle below the text colored in background color of Flash movie.
Be sure to put any color than white.
I need just clear text with pictures without anything else.
Hi Simplistik,
Unfortunately old fashion printing (like this sample, printing particularly frame) style dont fit to my project. Most of application is made dynamically so the text fields are.
I use PrintJob Class.
In attachment is MX2004 version, so when you will have time to look up
Thanks,
Here... weither your content is dynamic or not doesn't matter... as long as you make the printnum point to the correct frame you want to print it works fine... I've tested this and it works fine on yours.
Quick note... I don't have a printer here, but I worked with the PJ class.
addPage takes as a parameter a MovieClip.
This means that the folowing line is wrong
if (my_pj.addPage("text_mc.my_txt")) {
pagesToPrint++;
}
it should be :kommie:
if (my_pj.addPage("text_mc")) {
pagesToPrint++;
}
You should also check the pixel To twips conversion, if you want to be able to control the positioning and the final aspect of you printed page.
1 pixel = 1 point = 1/72 inch = 20 twips
1 inch = 72 pixels = 72 points = 1440 twips
1 cm = 567 twips
Good Luck
Change your stage background to white not grey, and the grey box will disappear. If you still want your stage to look grey but not print grey... just make a bottom layer w/ the grey on it.
Thanks simplistik for idea! :) Finally I manage to get clear text, although Im mad on macromedia because of this bug that cost me a lot of nerves ;)
Thanks.
print_btn.onRelease = function(){
{
var pj = new PrintJob();
var success = pj.start();
if(success)
{
pj.addPage("text_mc.my_txt");
pj.send();
}
delete pj;
}
}
Change your stage background to white not grey, and the grey box will disappear. If you still want your stage to look grey but not print grey... just make a bottom layer w/ the grey on it.
Where was the last debate on wednesday with Mccain and Obama?
INSTANCE / WAITING FOR SPRING
|
|