October 30, 2025, 04:10:48 PM

News:

Own IWBasic 2.x ? -----> Get your free upgrade to 3.x now.........


Form feed

Started by Andy, October 06, 2013, 03:04:51 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Andy

Hi,

Sorry, I can't find this answer in the forum - I'm sure there's a simple answer to it.

I'm sending some output to a file "Printfile" and excel opens the file to view the output.

WRITE Printfile,"something"

If I wanted to insert a page break after the above line what do I use?

WRITE Printfile, ??

Thanks,
Andy.
Day after day, day after day, we struck nor breath nor motion, as idle as a painted ship upon a painted ocean.

Brian

I think it is 0xC

Brian

Andy

Thanks Brian,

That looks right according to the Internet, but now I have to find a way to send it to the file.

At the moment it's just displaying the value in Excel rather than forcing a page break.

tried:
WRITE Printfile," 0xC" and WRITE Printfile, 0xC ?

Thanks,
Andy.
Day after day, day after day, we struck nor breath nor motion, as idle as a painted ship upon a painted ocean.

Brian

Andy, try:

WRITE PrintFile,"\x0C"

Brian

Andy

Thanks Brian for all your help.

It seems it cannot be done (in excel), so I think I will have to do it the old way i.e. count the number of lines being printed to the page.

Anyway,
thanks again,

Andy.

Day after day, day after day, we struck nor breath nor motion, as idle as a painted ship upon a painted ocean.

billhsln

When all else fails, get a bigger hammer.

Andy

Sorry for the late reply,

Thanks, yes will have a look at it.

Thanks again,
Andy.
Day after day, day after day, we struck nor breath nor motion, as idle as a painted ship upon a painted ocean.