|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Get inside! Sample the range of functionality easily built with JMSL Library for Time Series Data Analysis, Heat Maps, Portfolio Optimization, Monte Carlo Simulation, Stock Price Charting and more. Download Now! |
|
#1
|
||||
|
||||
|
Setting field heights
This should (hopefully!) be the last of my questions in the ongoing "Data Reports" series.
![]() Is there a way to set the height of the fields in the data report so that they do not shrink to fit the height of the font used? Changing the size of the font is not what I want to do, the fields contain only a period (.), which I want to keep small and unnoticed. (Its only there to make the field border visible). As it is, it doesn't matter what height I make the fields when I'm designing the form, it is always the same height in runtime. Is there a property or something to change this? I couldn't find one looking on msdn, but I didn't really know what I was after. Thanks in advance
__________________
--Dave-- U2kgSG9jIExlZ2VyZSBTY2lzLCBOaW1pdW0gRXJ1ZGl0aW9uaXMgSGFiZXM= |
|
#2
|
|||
|
|||
|
Is the field set to autogrow? You could attempt to set the field properties at run time by placing code in the report initialize module.
|
|
#3
|
||||
|
||||
|
The "cangrow" property is set to "false". I'm not sure I know what you mean when you refer to the "report initialize module". Can you be a little more specific, or at least tell me what I should be searching for on google? Thanks
|
|
#4
|
|||
|
|||
|
Option Explicit
Private Sub DataReport_Initialize() On Error GoTo Err_initialize 'You can run code before each report is generated. 'Here you can attempt to set the field properites. dataReport.Sections(x).Controls.Item(Y).Height = a dataReport.Sections(x).Controls.Item(Y).Width = b Exit_initialize: Exit Sub Err_initialize: Resume Exit_initialize: End Sub |
|
#5
|
||||
|
||||
|
Well, a change in the project means I don't have to use this anymore, but thanks for the solution anyway. It could be helpful on the next project.
![]() |
![]() |
| Viewing: Dev Shed Forums > Programming Languages - More > Visual Basic Programming > Setting field heights |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|