Quote from Mark Waples on November 26, 2024, 1:41 pmHi,
I am in the process of creating a bingo card generator and my initial conumdrum is how to create auto generated pages based upon the number of cards required.
I have one page containing 4 bingo cards but I am not sure how to generate extra pages based upon the number bingo cards that I require.
Lastly is it possible to print pages as one continuous PDF?
If anyone could offer a pointer I would be really grateful.
TIA
Mark
Hi,
I am in the process of creating a bingo card generator and my initial conumdrum is how to create auto generated pages based upon the number of cards required.
I have one page containing 4 bingo cards but I am not sure how to generate extra pages based upon the number bingo cards that I require.
Lastly is it possible to print pages as one continuous PDF?
If anyone could offer a pointer I would be really grateful.
TIA
Mark
Quote from mishem on November 26, 2024, 3:37 pm@mark-waples
If I understood correctly...
Math "[NumberCards]/[NumberCardsPage]" "-1" "[Result]" Math "Trunc([NumberCards]/[NumberCardsPage])" "-1" "[Trunc]" If "[Result]" "=" "[Trunc]" SetVar "[NumberPages]" "[Trunc]" Else SetVar "[NumberPages]" "[Trunc]+1" EndIf
If I understood correctly...
Math "[NumberCards]/[NumberCardsPage]" "-1" "[Result]" Math "Trunc([NumberCards]/[NumberCardsPage])" "-1" "[Trunc]" If "[Result]" "=" "[Trunc]" SetVar "[NumberPages]" "[Trunc]" Else SetVar "[NumberPages]" "[Trunc]+1" EndIf
Quote from Mark Waples on November 26, 2024, 4:16 pmQuote from mishem on November 26, 2024, 3:37 pm@mark-waples
If I understood correctly...
Plain textCopy to clipboardOpen code in new windowEnlighterJS 3 Syntax HighlighterMath "[NumberCards]/[NumberCardsPage]" "-1" "[Result]"Math "Trunc([NumberCards]/[NumberCardsPage])" "-1" "[Trunc]"If "[Result]" "=" "[Trunc]"SetVar "[NumberPages]" "[Trunc]"ElseSetVar "[NumberPages]" "[Trunc]+1"EndIfMath "[NumberCards]/[NumberCardsPage]" "-1" "[Result]" Math "Trunc([NumberCards]/[NumberCardsPage])" "-1" "[Trunc]" If "[Result]" "=" "[Trunc]" SetVar "[NumberPages]" "[Trunc]" Else SetVar "[NumberPages]" "[Trunc]+1" EndIfMath "[NumberCards]/[NumberCardsPage]" "-1" "[Result]" Math "Trunc([NumberCards]/[NumberCardsPage])" "-1" "[Trunc]" If "[Result]" "=" "[Trunc]" SetVar "[NumberPages]" "[Trunc]" Else SetVar "[NumberPages]" "[Trunc]+1" EndIf
Hi,
I am not sure I follow your logic.
I cannot see any method within NeoWin of generating the actual physical pages required.
Say I have 4 cards per A4 Page and I want to generate 30 pages of random tickets I cannot see a way of doing that apart from physically creating the actual 30 pages and allocating a random field for each bingo square.
I have attached a single ticket but in reality there would be 4 tickets per page.
If I did it the manul way that's a heap load of variables and a lot of work.
TIA
Mark
Quote from mishem on November 26, 2024, 3:37 pmIf I understood correctly...
Plain textCopy to clipboardOpen code in new windowEnlighterJS 3 Syntax HighlighterMath "[NumberCards]/[NumberCardsPage]" "-1" "[Result]"Math "Trunc([NumberCards]/[NumberCardsPage])" "-1" "[Trunc]"If "[Result]" "=" "[Trunc]"SetVar "[NumberPages]" "[Trunc]"ElseSetVar "[NumberPages]" "[Trunc]+1"EndIfMath "[NumberCards]/[NumberCardsPage]" "-1" "[Result]" Math "Trunc([NumberCards]/[NumberCardsPage])" "-1" "[Trunc]" If "[Result]" "=" "[Trunc]" SetVar "[NumberPages]" "[Trunc]" Else SetVar "[NumberPages]" "[Trunc]+1" EndIfMath "[NumberCards]/[NumberCardsPage]" "-1" "[Result]" Math "Trunc([NumberCards]/[NumberCardsPage])" "-1" "[Trunc]" If "[Result]" "=" "[Trunc]" SetVar "[NumberPages]" "[Trunc]" Else SetVar "[NumberPages]" "[Trunc]+1" EndIf
Hi,
I am not sure I follow your logic.
I cannot see any method within NeoWin of generating the actual physical pages required.
Say I have 4 cards per A4 Page and I want to generate 30 pages of random tickets I cannot see a way of doing that apart from physically creating the actual 30 pages and allocating a random field for each bingo square.
I have attached a single ticket but in reality there would be 4 tickets per page.
If I did it the manul way that's a heap load of variables and a lot of work.
TIA
Mark
Uploaded files:Quote from mishem on November 26, 2024, 5:14 pmYou can simulate as many pages as you want on one page. Just fill in the variables.
Maybe I don't understand the task.
You can generate some kind of base of certain numbers for each page in advance, and then simply fill in the variables with numbers from the base.
And then write somewhere on the page (if necessary) page1, page2, etc. When pseudo-navigating or printing, fill in the table belonging to a certain page.
Why do you need many pages if the contents of the page are the same, except for the variables.
You can simulate as many pages as you want on one page. Just fill in the variables.
Maybe I don't understand the task.
You can generate some kind of base of certain numbers for each page in advance, and then simply fill in the variables with numbers from the base.
And then write somewhere on the page (if necessary) page1, page2, etc. When pseudo-navigating or printing, fill in the table belonging to a certain page.
Why do you need many pages if the contents of the page are the same, except for the variables.
Quote from Mark Waples on November 27, 2024, 2:29 pmHi Mishem,
Thank you for your effort - one thing to say I am using text instead of numbers so that won't work in it's current state.
Regards,
Mark
Hi Mishem,
Thank you for your effort - one thing to say I am using text instead of numbers so that won't work in it's current state.
Regards,
Mark

Quote from alangonzalez91 on December 3, 2024, 2:04 am