Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Print preview problem

Status
Not open for further replies.

jhonny03

Programmer
Oct 28, 2015
23
PH
after i hide the background screen of program, and when i run
a form then print preview a report, the size of the print preview only fits
on the size of the form which i executed.

how to solve this..plz help..tnx
 
Try This:
oPrtRpt = CREATEOBJECT("Form")
WITH oPrtRpt
.CAPTION = "This a form title"
.HEIGHT = 515
.WIDTH = 620
.WINDOWSTATE = 2
.SHOW()
ENDWITH

REPORT FORM c:\temp\test.frx PREVIEW WINDOW (oPrtRpt.NAME)

*--Release report form window
oRepForm.RELEASE()

Edgar
Integrated Bar code Systems
 
tnx edgar..
it works but I do not want that the form will be maximize..
all i want for the report is not to fit with the form's size
 
sir that line of code is the reason on my problem..
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top