I have a form which is a series of text fields which all print a variable from the dictionary. These are all printed in courier 4.5 point, and each line is 0.16" high. This is designed to give a 60 lines printed page, which is how it appears in the designer.
I'm displaying the report using code similar to :
dim rpt as new Stimulsoft.Report.StiReport
rpt.load("myreport.mrt")
rpt.dictionary.variables("Field1")="text"
rpt.dictionary.variables("Field2")="text" etc
rpt.compile
rpt.show or rpt.print
If I show the report it appears ok on screen.
However, if I print it the print appears tiny, and the complete print appears in the top corner of the page (about 2.5" across and 3" down)
Have I done something wrong?
Simon
Printing seems to "shrink" the form
Printing seems to "shrink" the form
Please send this report and result in mdc format (you can save report to mdc format from preview window) to support [at] stimulsoft [dot] com
Thank you.
Thank you.
Printing seems to "shrink" the form
ok, it's not quite as simple as I thought. My code wasn't quite as simple as I had written. In the form that I had put it down it was working fine.
What I'm actually doing is loading a report from file into a template variable, then creating a report in code, replacing the pages with the pages from the template and copying the dictionary across, and then setting the variables.
Then I'm compiling and rendering the page, and then printing the rendered page, before clearing out and starting the next page.
I'll try and distill this down to a shorter bit of code that you can look at.
Simon
What I'm actually doing is loading a report from file into a template variable, then creating a report in code, replacing the pages with the pages from the template and copying the dictionary across, and then setting the variables.
Then I'm compiling and rendering the page, and then printing the rendered page, before clearing out and starting the next page.
I'll try and distill this down to a shorter bit of code that you can look at.
Simon