Re: Printing Field contents in RunRev Enterprise 4.5.5
You might also double check that you didn't create two fields that have the same name with one being blank I quite often use button scripts to flesh out handlers before I turn them into functions in a card or stack script. I occasionally copy and paste a button control, change the script and wonder why a click at the loc of the btn which I have in another button which is doing a series of operations by clicking at the location of several such test buttons hasn't included the actions to be performed in the new button's script... Whoops, it had the same name as the button it was duplicated from Good luck, Wayne ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Printing Field contents in RunRev Enterprise 4.5.5
On 16/08/2010 03:38, "Bsummerton" wrote: > I have checked that the Field "Results" contains text that is Black and not > White. Can a Stack only have one Field Named "Results" within its Cards? I > am using a Mac and exporting to Mac (which prints fine) but the Windows > Standalone continues to print a Blank Page. Am using Enterprise 4.5.5 Are you sure that the printing libraries have been selected correctly in the standalone builder? Kind regards, Kevin Kevin Miller ~ ke...@runrev.com ~ http://www.runrev.com/ RunRev - Software construction for everyone ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Printing Field contents in RunRev Enterprise 4.5.5
HI Bren, I think you need to go back to some basic tests to tie this down. 1. As Mark suggested: revPrintText "Hello World" Does this work? if Yes goto 2. if not you have a problem with Rev so a reinstall may be in order. 2. Create a new stack with one card. Place one text box named "Results" and populate with some text. Add a button and add revPrintField the name of field "Results" to mouseUp Does this work?.. No then I'm stumped I've tested here and works ok Rev 4.5.2 Yes, elaborate the print function. 3. Replace 2. with this (from your code) revPrintText (the htmlText of field "Results"),"Results",the time && the date I've tested and this also works as expected If 3 works then as Mark as suggested you probably are not specifying the correct card with the Results field on. revPrintText (the htmlText of field "Results" of card "mycard" ),"Results",the time && the date Have tested and this works. Hope this helps - Andy Piddock -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Printing-Field-contents-in-RunRev-Enterprise-4-5-5-tp2326353p2326583.html Sent from the Revolution - User mailing list archive at Nabble.com. ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Printing Field contents in RunRev Enterprise 4.5.5
"If YOU were wanting to print the text from a Field named "Results" what specifically would YOU script..." Well, you did ask! Stop struggling with revPrintField etc. Just export the content to a text file, then call some other program to print it. Peter -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Printing-Field-contents-in-RunRev-Enterprise-4-5-5-tp2326353p2326452.html Sent from the Revolution - User mailing list archive at Nabble.com. ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Printing Field contents in RunRev Enterprise 4.5.5
Hi Brent, Your scripts seem correct to me. What happenes if you execute revPrintText "Hello World" from the message box? I get a page with that text in both Rev 4.0 and Rev 4.5. Are you using Rev 4.5? This is still in beta stage. You might want to use 4.0 instead. Which operating system are you using? Are you sure the field that is being printed is on the current card? -- Best regards, Mark Schonewille Economy-x-Talk Consulting and Software Engineering Homepage: http://economy-x-talk.com Twitter: http://twitter.com/xtalkprogrammer KvK: 50277553 From 15th August, we'll have time for new projects! Be the first in line and contact me now! Download the Installer Maker plugin for Runtime Revolution at http://qurl.tk/ce On 16 aug 2010, at 04:38, Bsummerton wrote: > > > Thank you for suggestions but I am still having trouble. > > I have a Stack that has thirty Cards containing multiple choice questions. > On Four of these thirty Cards I have a Field named "Results" that contains > the users answers for each section. On each of the four Cards that has the > field "Results" I have a Print Button. I have tried the following scripts to > try and print on a Networked Printer the contents of the Field "Results," to > no avail. What am I doing wrong? > > > on Mouseup > print card "Output" > end Mouseup > (Used this as a TEST - This prints the Card to the printer successfully) > > > on Mouseup > revPrintText "Hello world" > End Mouseup > (Used this as a TEST - This prints a Blank Page) > > > on Mouseup > revPrintField the name of field "Results" > end mouseup > (This continues to print a Blank Page) > > > on Mouseup > revPrintText (the htmlText of field "Results"),"Results",the time && the date > End Mouseup > (This continues to print a Blank Page) > > I have checked that the Field "Results" contains text that is Black and not > White. Can a Stack only have one Field Named "Results" within its Cards? I > am using a Mac and exporting to Mac (which prints fine) but the Windows > Standalone continues to print a Blank Page. Am using Enterprise 4.5.5 > > If YOU were wanting to print the text from a Field named "Results" what > specifically would YOU script: > > Kind regards, Brent. ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Printing Field contents in RunRev Enterprise 4.5.5
Thank you for suggestions but I am still having trouble. I have a Stack that has thirty Cards containing multiple choice questions. On Four of these thirty Cards I have a Field named "Results" that contains the users answers for each section. On each of the four Cards that has the field "Results" I have a Print Button. I have tried the following scripts to try and print on a Networked Printer the contents of the Field "Results," to no avail. What am I doing wrong? on Mouseup print card "Output" end Mouseup (Used this as a TEST - This prints the Card to the printer successfully) on Mouseup revPrintText "Hello world" End Mouseup (Used this as a TEST - This prints a Blank Page) on Mouseup revPrintField the name of field "Results" end mouseup (This continues to print a Blank Page) on Mouseup revPrintText (the htmlText of field "Results"),"Results",the time && the date End Mouseup (This continues to print a Blank Page) I have checked that the Field "Results" contains text that is Black and not White. Can a Stack only have one Field Named "Results" within its Cards? I am using a Mac and exporting to Mac (which prints fine) but the Windows Standalone continues to print a Blank Page. Am using Enterprise 4.5.5 If YOU were wanting to print the text from a Field named "Results" what specifically would YOU script: Kind regards, Brent. ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution