V
Vayse
Hi
Marshall Barton replied to my previous post, with code as below, to create a
'roundy rectangle'
And all worked well. Or so I thought.
The report looked fine on screen, and printed fine. However, if coverted to
snapshot, the thinkness of the line greatly increased, so that all the
rectangles merged together.
Likewise if converted to PDF - we're using a third party app - Win2PDF.
The report is a main report with around 10 sub reports. I couldn't figure
out what the problem was, so I created a brand new main report. Then I
inserted the sub reports in.
Lets call the original report rptOrig, and the new rptNew.
On rptOrig, the DrawWidth had been 120. For whatever reason, this was too
thick on rptNew, so I set it to 45.
rptNew looks fine on screen. Converts to PDF fine. However, it has its own
problems:
1) When printed from Access, the lines are much thinner. And black, as
opposed to Grey.
2) When converted to snapshot, the lines are thinner here also.
I can workaround the printing issue, by converting to PDF and printing from
there. However, I'd like to understand what the issue is.
Any ideas?
Thanks
Vayse
'*************************************************************
Const R As Long = 100
Const Pi As Double = 3.14159265
Const LineWidth As Long = 45
Const LineForeColour As Long = 12632256
Private Sub Detail_Print(Cancel As Integer, PrintCount As Integer)
On Error GoTo Err_Format
Me.ForeColor = LineForeColour
Me.DrawWidth = LineWidth
' Roundy rectangle aroudn the outline of the report
Roundy ("rptPolicyTop")
Roundy ("rptMortgage_Summary")
Exit_Format:
Exit Sub
Err_Format:
msgError (Me.Name)
Resume Exit_Format
End Sub
Private Sub Roundy(stReport As String)
With Me(stReport)
Me.Line (.Left, .Top + R)-(.Left, .Top + .Height - R)
Me.Circle (.Left + R, .Top + R), R, , 0.5 * Pi, Pi
Me.Line (.Left + R, .Top)-(.Left + .Width - R, .Top)
Me.Circle (.Left + .Width - R, .Top + R), R, , 0, 0.5 * Pi
Me.Line (.Left + .Width, .Top + R)-(.Left + .Width, .Top + .Height -
R)
Me.Circle (.Left + .Width - R, .Top + .Height - R), R, , 1.5 * Pi, 2
* Pi
Me.Line (.Left + R, .Top + .Height)-(.Left + .Width - R, .Top +
..Height)
Me.Circle (.Left + R, .Top + .Height - R), R, , Pi, 1.5 * Pi
End With
End Sub
Marshall Barton replied to my previous post, with code as below, to create a
'roundy rectangle'
And all worked well. Or so I thought.
The report looked fine on screen, and printed fine. However, if coverted to
snapshot, the thinkness of the line greatly increased, so that all the
rectangles merged together.
Likewise if converted to PDF - we're using a third party app - Win2PDF.
The report is a main report with around 10 sub reports. I couldn't figure
out what the problem was, so I created a brand new main report. Then I
inserted the sub reports in.
Lets call the original report rptOrig, and the new rptNew.
On rptOrig, the DrawWidth had been 120. For whatever reason, this was too
thick on rptNew, so I set it to 45.
rptNew looks fine on screen. Converts to PDF fine. However, it has its own
problems:
1) When printed from Access, the lines are much thinner. And black, as
opposed to Grey.
2) When converted to snapshot, the lines are thinner here also.
I can workaround the printing issue, by converting to PDF and printing from
there. However, I'd like to understand what the issue is.
Any ideas?
Thanks
Vayse
'*************************************************************
Const R As Long = 100
Const Pi As Double = 3.14159265
Const LineWidth As Long = 45
Const LineForeColour As Long = 12632256
Private Sub Detail_Print(Cancel As Integer, PrintCount As Integer)
On Error GoTo Err_Format
Me.ForeColor = LineForeColour
Me.DrawWidth = LineWidth
' Roundy rectangle aroudn the outline of the report
Roundy ("rptPolicyTop")
Roundy ("rptMortgage_Summary")
Exit_Format:
Exit Sub
Err_Format:
msgError (Me.Name)
Resume Exit_Format
End Sub
Private Sub Roundy(stReport As String)
With Me(stReport)
Me.Line (.Left, .Top + R)-(.Left, .Top + .Height - R)
Me.Circle (.Left + R, .Top + R), R, , 0.5 * Pi, Pi
Me.Line (.Left + R, .Top)-(.Left + .Width - R, .Top)
Me.Circle (.Left + .Width - R, .Top + R), R, , 0, 0.5 * Pi
Me.Line (.Left + .Width, .Top + R)-(.Left + .Width, .Top + .Height -
R)
Me.Circle (.Left + .Width - R, .Top + .Height - R), R, , 1.5 * Pi, 2
* Pi
Me.Line (.Left + R, .Top + .Height)-(.Left + .Width - R, .Top +
..Height)
Me.Circle (.Left + R, .Top + .Height - R), R, , Pi, 1.5 * Pi
End With
End Sub