J
Jemsson
Hello
I have report with two columns
I have code on Detail Event that make print on the detail insted textbox.
And when I am going to print ex. 3 raw, so I need to change Detail.Height
such as this example:
Private Sub Detail_Format(Cancel As Integer, FormatCount As Integer)
Dim Number As Intiger
Dim info As String
Number = Me.Detail.Height
info = "-------" & VbCr & "--------" & VbCr & "----" & VbCr & "------"
how many & VbCr & = info ' it shuld give 3
Me.Detail.Height = 0,598cm * 3
' here I have already all the code to print the text
Me.Detail.Height = Number
End Sub
But the problem when I try to change the Detail Height I get this message:
Run-time error '2191':
You can't set the Height property in
print preview or printing has started.
How can I change Detail Height, because evry post have diffrent number of
raw ?
Thanks
I have report with two columns
I have code on Detail Event that make print on the detail insted textbox.
And when I am going to print ex. 3 raw, so I need to change Detail.Height
such as this example:
Private Sub Detail_Format(Cancel As Integer, FormatCount As Integer)
Dim Number As Intiger
Dim info As String
Number = Me.Detail.Height
info = "-------" & VbCr & "--------" & VbCr & "----" & VbCr & "------"
how many & VbCr & = info ' it shuld give 3
Me.Detail.Height = 0,598cm * 3
' here I have already all the code to print the text
Me.Detail.Height = Number
End Sub
But the problem when I try to change the Detail Height I get this message:
Run-time error '2191':
You can't set the Height property in
print preview or printing has started.
How can I change Detail Height, because evry post have diffrent number of
raw ?
Thanks