Re: repost : Printer selection issue
> Le 24 mars 2017 à 15:20, Keisuke Miyako via 4D_Tech <4d_tech@lists.4d.com> a > écrit : > > [...] > remarkably, > the "Print object" command works with decimal coordinates, > as does SVG (mm, pc, in, px, pt, em, etc). ??? Why x, y, length, height are mentioned as "These values must be expressed in pixels" and type as "longint" in doc? Working with Print object, I usually use metric values (cm, mm) and convert in rounded pixels before the call. Am I loosing my time? :-( -- Arnaud de Montard ** 4D Internet Users Group (4D iNUG) FAQ: http://lists.4d.com/faqnug.html Archive: http://lists.4d.com/archives.html Options: http://lists.4d.com/mailman/options/4d_tech Unsub: mailto:4d_tech-unsubscr...@lists.4d.com **
Re: repost : Printer selection issue
the label editor, as well as regular forms, only accepts integer units. the label editor appears to accept decimal coordinates, but it is only a unit converter, internally the values are always stored in points (integer). remarkably, the "Print object" command works with decimal coordinates, as does SVG (mm, pc, in, px, pt, em, etc). ...which is why this component (https://github.com/miyako/4d-component-label-editor) can align object with more precision than the standard PRINT LABEL command. > 2017/03/24 23:06、Chip Scheide via 4D_Tech <4d_tech@lists.4d.com> のメール: > Not only does the information being printed (total of 8 characters in 2 > lines (max)) have to align EXACTLY - but the users want/need to be able > to reuse a partially printed page, as each sheet costs $3(usd). ** 4D Internet Users Group (4D iNUG) FAQ: http://lists.4d.com/faqnug.html Archive: http://lists.4d.com/archives.html Options: http://lists.4d.com/mailman/options/4d_tech Unsub: mailto:4d_tech-unsubscr...@lists.4d.com **
Re: repost : Printer selection issue
yeah... not so much for most of the printing done in my system it is not to much of a problem; but for the specialty labels Using Print Objectat least not without: - a major rewrite of existing printing routines - likely a major issue for the end user. these specialty labels do not use an avery format. for example, there are labels for the top of a 2ml sample tube, AND still stay attached in a freezer which is -80 degrees C. These labels are 0.95 cm in diameter (3/8 inch), and there are 192 on a one laser print page. Not only does the information being printed (total of 8 characters in 2 lines (max)) have to align EXACTLY - but the users want/need to be able to reuse a partially printed page, as each sheet costs $3(usd). There are 4 other similar lab specific labels that need to be printed, the others are a bit larger but the all sheets need to be reused, and the data printing form needs to match. And yes - I force the system to print an 'alignment' page, and verify label alignment with the printout along with a mechanism to adjust the positioning if needed (using move object), before they get to choose the data they are going to print. On Fri, 24 Mar 2017 09:38:37 +0100, Arnaud de Montard via 4D_Tech wrote: > >> Le 23 mars 2017 à 16:49, Chip Scheide via 4D_Tech >> <4d_tech@lists.4d.com> a écrit : >> >> I am having an issue with printer selection. >> [...] >> The users know, or at least should know by now, to select a specific >> printer in the page setup dialog; however, often they don't, and this >> screws up label printing. > > Another approach would be to adapt the printing whatever the > printer/paper/margins. This can be done with 'Print object', you can > position objects in the page knowing margins and page surface. I ran > into that last year to allow A4 or legal us for the same printing. > > -- > Arnaud de Montard > > > > ** > 4D Internet Users Group (4D iNUG) > FAQ: http://lists.4d.com/faqnug.html > Archive: http://lists.4d.com/archives.html > Options: http://lists.4d.com/mailman/options/4d_tech > Unsub: mailto:4d_tech-unsubscr...@lists.4d.com > ** --- Gas is for washing parts Alcohol is for drinkin' Nitromethane is for racing ** 4D Internet Users Group (4D iNUG) FAQ: http://lists.4d.com/faqnug.html Archive: http://lists.4d.com/archives.html Options: http://lists.4d.com/mailman/options/4d_tech Unsub: mailto:4d_tech-unsubscr...@lists.4d.com **
Re: repost : Printer selection issue
Thanks Keisuke and others, I'm sorry I didn't put version number in - usually I do. this is version 13 - and yes it would be 32 bit. due to version - there is no Blob to print settings. I do not have 4D pack, so no joy there. I will look at the github bit and see if there is something there that might work. I do have 4D Write, so I will also look at that, I do not use it for anything currently, but if it will force a printer selection.. Thanks all On Fri, 24 Mar 2017 10:33:37 +, Keisuke Miyako via 4D_Tech wrote: > I think what you describe is a "32-bit" thing. > > the code > > SET CURRENT PRINTER("_192_168_1_33") > PRINT SETTINGS(Page setup dialog) > > shows "any printer" on v16 32-bit, > the default printer on v16 64-bit. > > - > > even using 32-bit, > once you have chosen the printer in the page setup dialog, > and stored that settings on disk, you can do something like > > DOCUMENT TO BLOB(Get 4D folder(Current resources > folder)+"_192_168_1_33";$settings) > BLOB to print settings($settings) > PRINT SETTINGS(Page setup dialog) > > to get the printer name show up the first time. > > - > > I guess 4D Pack can do something similar pre v15. > maybe PAGE SETUP, maybe not. > > or even, > > https://github.com/miyako/4d-plugin-core-printing > >> 2017/03/24 0:49、Chip Scheide via 4D_Tech <4d_tech@lists.4d.com> のメール: >> >> any help?? > > > > > ** > 4D Internet Users Group (4D iNUG) > FAQ: http://lists.4d.com/faqnug.html > Archive: http://lists.4d.com/archives.html > Options: http://lists.4d.com/mailman/options/4d_tech > Unsub: mailto:4d_tech-unsubscr...@lists.4d.com > ** --- Gas is for washing parts Alcohol is for drinkin' Nitromethane is for racing ** 4D Internet Users Group (4D iNUG) FAQ: http://lists.4d.com/faqnug.html Archive: http://lists.4d.com/archives.html Options: http://lists.4d.com/mailman/options/4d_tech Unsub: mailto:4d_tech-unsubscr...@lists.4d.com **
Re: repost : Printer selection issue
I think what you describe is a "32-bit" thing. the code SET CURRENT PRINTER("_192_168_1_33") PRINT SETTINGS(Page setup dialog) shows "any printer" on v16 32-bit, the default printer on v16 64-bit. - even using 32-bit, once you have chosen the printer in the page setup dialog, and stored that settings on disk, you can do something like DOCUMENT TO BLOB(Get 4D folder(Current resources folder)+"_192_168_1_33";$settings) BLOB to print settings($settings) PRINT SETTINGS(Page setup dialog) to get the printer name show up the first time. - I guess 4D Pack can do something similar pre v15. maybe PAGE SETUP, maybe not. or even, https://github.com/miyako/4d-plugin-core-printing > 2017/03/24 0:49、Chip Scheide via 4D_Tech <4d_tech@lists.4d.com> のメール: > > any help?? ** 4D Internet Users Group (4D iNUG) FAQ: http://lists.4d.com/faqnug.html Archive: http://lists.4d.com/archives.html Options: http://lists.4d.com/mailman/options/4d_tech Unsub: mailto:4d_tech-unsubscr...@lists.4d.com **
Re: repost : Printer selection issue
Chip Scheide: > I have found that the margins(?) or Page Size(?), are different than > the Xerox printers that are used here, and probably different than any > actual printer. This affects printing, usually by causing an extra > blank page to be printed. In some instances the blank page is first, > and others it is after. Either way, when working with printing > precisely aligned forms (customized label forms) this causes a problem. > > The users know, or at least should know by now, to select a specific > printer in the page setup dialog; however, often they don't, and this > screws up label printing. I had a similar problem over here. (Users almost never remember to change the printer. And to be honest: they shouldn´t have to.) Solution: I have a record with user preferences. In the input form for those preferences I have a button for the user to select the print settings. Those settings are stored via [User]WR_PrintSettings:=WR Print settings to BLOB ($lArea) Before I start a printjob I call BLOB to print settings WR BLOB TO PRINT SETTINGS ($lArea;[User]WR_PrintSettings;wr layout and print settings) As you can see from my example I do most of my printing with 4D Write but I guess the same should work with Print settings to BLOB and BLOB TO PRINT SETTINGS Greetings from Germany, Bernd Fröhlich ** 4D Internet Users Group (4D iNUG) FAQ: http://lists.4d.com/faqnug.html Archive: http://lists.4d.com/archives.html Options: http://lists.4d.com/mailman/options/4d_tech Unsub: mailto:4d_tech-unsubscr...@lists.4d.com **
repost : Printer selection issue
I am having an issue with printer selection. On Mac OS X, the default printer (in 4d only?) for the first print dialog (Page Setup) is "Any Printer" I have found that the margins(?) or Page Size(?), are different than the Xerox printers that are used here, and probably different than any actual printer. This affects printing, usually by causing an extra blank page to be printed. In some instances the blank page is first, and others it is after. Either way, when working with printing precisely aligned forms (customized label forms) this causes a problem. The users know, or at least should know by now, to select a specific printer in the page setup dialog; however, often they don't, and this screws up label printing. I have tried to address the issue by using SET CURRENT PRINTER to insure that the correct printer is actually selected. BUT, I am not getting anywhere. I use the following code: PRINTERS LIST($Printers;$Locations;$Models) $Current_Printer:=Get current printer $Loc:=Find in array($Printers;$Current_Printer) If ($Loc>0) SET CURRENT PRINTER($Printers{$Loc}) Else End if On my computer there *is* a default printer selected at the OS level. Stepping through the above code, shows that it is recognized as the current printer ($Current_Printer). Additionally, even after re-setting the current printer as the current printer, the Page setup dialog still maintains the default 'any printer'. THe code set, or default printer DOES show correctly i the second dialog (print job) dialog. Within any single process, this happens for the first time printing. HOWEVER, if I print (including preview) and then print again (in the same process) the Page setup Dialog DOES finally have the correct printer selected. If I start a new process in which I am printing, the above scenario repeats itself. i.e. the first time through the dialogs the selected printer for Page setup is 'any printer'. I have tried (and none have worked): - Set printer - and suppressing the page setup dialog - set printer to a different printer from the current printer, then changing it back with and without suppressing the page setup dialog i.e. set printer to B from A, then set it back to A - setting the current printer to the default printer - setting printer to a different printer any help?? --- Gas is for washing parts Alcohol is for drinkin' Nitromethane is for racing ** 4D Internet Users Group (4D iNUG) FAQ: http://lists.4d.com/faqnug.html Archive: http://lists.4d.com/archives.html Options: http://lists.4d.com/mailman/options/4d_tech Unsub: mailto:4d_tech-unsubscr...@lists.4d.com **