[FX.php List] Bulk printing
Steve Winter
steve at bluecrocodile.co.nz
Sun Nov 26 15:53:38 MST 2006
Just to clarify one of my comments below regarding the scripting of the
print command... the 'print' command is not able to be used in scripts
called through the WPE was what I was trying to say ;-)
Cheers
Steve
> Hi Jonathan,
>
> There are a couple of issues I can see with having the layout in FMP,
> and
> printing from there...
>
> 1. presumably if the user is completing the form through aweb interface
> they are not in the same place as the server and therefore the printer,
> otherwise why would you be using php at all and not having users edit
> directly through an FMP client...?
>
> 2. you can't script (through FMP script-maker) the print command...
>
> My solution to overcome both of the above issues has been to use either
> 'save as pdf' script step, outputting what I want printed as a pdf
> file,
> which is then delivered into the web-users browser, where they can
> print
> it on a local printer.... or using fpdf.php to essentially do the same
> thing, generate a pdf in the users browser...
>
> Cheers
> Steve
>
>
>
> > Actually, that's the javascript I'm using now for the end user to
> > print a single form.
> >
> > With this code, the button has to be clicked, and thus doesn't work
> > in a scripted environment.
> >
> > Since posting my original message, I've done more research and have
> > been given a dose of reality with regard to PHP's ability to print.
> > In short, it appears that PHP is the wrong tool for the job of bulk
> > printing
> >
> > With this in mind, I am reverting back to FMP to replicate the layout
> > originally created in PHP, and go that route. I didn't want to do
> > that, but the obstacles seem too great at this point, and the process
> > of an FMP layout is a known entity.
> >
> > FYI...I need to print 500 forms.
> >
> > Anyone disagree?
> >
> > Jonathan
> >
> > >Something like this?
> > >
> > ><form action="javascript:window.print()">
> > ><input type="submit" name="a" value="Print">
> > ></form>
> > >
> > >2006/11/26, Jonathan Schwartz <jonathan at eschwartz.com>:
> > >>Hi Folks.
> > >>
> > >>I need to bulk print 500 or so forms at the end of a data entry
> > >>cycle. I spent so much time fine-tuning the form in PHP, I have no
> > >>desire to recreate the form in FMP just to bulk print. (The
> original
> > >>use of the form is to allow end users to print out at the end of
> > >>their session).
> > >>
> > >>So, this is a new one for me....to create a print routine with
> FX.php
> > >>driving the process. I know that I can build a script to loop thru
> > >>records, but I'm not sure about the Printing part. I've got a PRINT
> > >>button on the php page that end users click now. It executes a
> > >>"window.print()" command. However, I don't know how to execute the
> > >>same command in a script.
> > >>
> > >>Any suggestions?
> > >>
> > >>Thanks
> > >>
> > >>Jonathan
> > >>--
> > >>
> > >>Jonathan Schwartz
> > >>FileMaker 8 Certified Developer
> > >>Associate Member, FileMaker Solutions Alliance
> > >>Schwartz & Company
> > >>jonathan at eschwartz.com
> > >>http://www.eschwartz.com
> > >>http://www.exit445.com
> > >>415-381-1852
> > >>
> > >>_______________________________________________
> > >>FX.php_List mailing list
> > >>FX.php_List at mail.iviking.org
> > >>http://www.iviking.org/mailman/listinfo/fx.php_list
> > >>
> > >_______________________________________________
> > >FX.php_List mailing list
> > >FX.php_List at mail.iviking.org
> > >http://www.iviking.org/mailman/listinfo/fx.php_list
> >
> >
> > --
> >
> > Jonathan Schwartz
> > FileMaker 8 Certified Developer
> > Associate Member, FileMaker Solutions Alliance
> > Schwartz & Company
> > jonathan at eschwartz.com
> > http://www.eschwartz.com
> > http://www.exit445.com
> > 415-381-1852
> >
> > _______________________________________________
> > FX.php_List mailing list
> > FX.php_List at mail.iviking.org
> > http://www.iviking.org/mailman/listinfo/fx.php_list
>
>
> _______________________________________________
> FX.php_List mailing list
> FX.php_List at mail.iviking.org
> http://www.iviking.org/mailman/listinfo/fx.php_list
More information about the FX.php_List
mailing list