I just want to change page within a sheet. For example, I writing data to a sheet in a workbook,at the first page in this sheet,I wrote two rows,then I want to go to the first row of next page in this sheet.how can I do it?
I am not sure if I got your question right, but in Excel there is no concept of Pages as in Word. You just keep adding rows. You would probably yourself need to define n number of rows to denote 1 page of data and accordingly add that value to skip that many rows when you write the next data.
Regards,
Vikram
I think its based on paper size. If the other printer is also using the same paper size then I guess it would print the same number of rows.
If you are printing programmatically then you can control this.
Regards,
Vikram
Thank you Vikram! I see what you meant.So I am trying to control the setting of printer programmatically. Can you give me some code guide or something?
Take a look at the following sample:
Printing in VB.NET
http://www.vbdotnetheaven.com/Code/Jun2003/2087.asp
Regards,
Vikram