-
I have a text box that the results of a search engine are added to. The date is added to the textbox first, then the 1st keyword, then the 2nd keyword, then the URL, and a blurb containing both keywords, then the next url and blurb etc. until the 2nd keyword changes, then until the first keyword changes (might be several since they can choose Search All from the combo box of keywords). Everytime the 1st keyword changes they want to start on a new page, so the reports can be printed and kept seperate. Before adding the next 1st keyword I want to specify a new page, does anyone know how to do this?
thanks :)
Cady
-
You could put some sort of marking in the RichTextBox (For example -==-). Before it is printed, you could scan the text for -==- and whenevr that is found, set the printer to print a new page.
-
what is (-==-)? Or by marker do you mean something that doesn't have a specific meaning? I would put this before the new keyword(1st) and then do an instr and when it is found then I set the new page? If this is what you mean can you tell me how to set the printer to a new page? Thanks Megatron.
Cady
-
Yes, that's what I meant.
Regarding the page bit, to start a new page in the printer, all you have to do is type Printer.NewPage