On Saturday, November 24, 2012 12:07:54 AM UTC+5:30, SD wrote:
I think that is because we are getting our answers most quickly from the
vbaxl*.chm file that usually resides somewhere under Program
Files\Microsoft Office, For anyone who cannot find it there, here is a
download link for version 11:
/*
1. I couldn't accomplish this for my following issue, so making a bit of noise here with an Excel OLE related question.
2. Should I need to post this as a "new post"?
*/
Dear Group:
This request is in continuation of my journey to porting a report to Excel using OLE under Harbour 3.0...................
The Excel report is ok, with proper horizontal manual page breaks. Now am looking for:
HOW TO INSERT VERTICAL PAGE BREAK?
So that the print-out comes up correctly on the same page, and not a portion of the right side of the page moves to the next page.....
I was using oSheet:PageSetup:Zoom = 62, and if I recollect correctly, it was giving correct "page break view" on my system, but when same routine on other computer with different office ver. - the horizontal manual page break was intact & correct, but the vertical page break got destroyed....then I removed the code for the zoom property but nothing seems to be ok for me with respect to vertical page break.....
My printed data range is say:A1:O167 (this is variable as per the actual data size). The "FIXED" is I want to have a vertical page break after the right-most end of my data, which is in this case is COLUMN "O". If range is required, that can be assigned but I tried lot of options nothing resulted the desired vertical page break.
I was trying like this:
oSheet:VPageBreaks:AddBefore:= oSheet:Range(mrange)
oSheet:VPageBreaks(1):Location:= oSheet:Range( "P1" )
oSheet:Range("P1:P167"):VPageBreaks:DragOff:Direction:= xlToRight
If someone can supply the working code (Harbourized!) for this issue, would be highly obliged.
Regards,
Swapan