Showing posts with label papersize. Show all posts
Showing posts with label papersize. Show all posts

Tuesday, March 20, 2012

problem with seagate crystal report 8.0

hi everyone i'm using vb6 and crystal 8.0. i'm beginer of crystal rport 8. my problem is how to set the papersize, paperorientation, papermargin, printerdriver and prntername in visual basic using crystal report v8.0 and ofcourse to get the reportsource :)...? i really really really appreciate your help.. thanks a lot in advance. :)

AtzOpen report. Goto File--> Printer Setup and set the properties.

Madhivanan|||i downloaded some sample code about crystal report 8... "SimpleReport"

when i load the file the error message will appear "Error during load. "C:\SimpleReport\CrystalReport1.log' for details'" second error will appear "CrystalReport1.dsr could not be loaded"

this is the top code in the program :

*******************START HERE******************
Option Explicit

Dim m_Report As New CrystalReport1 ' Create a new instance of the Crystal Report
Dim m_RS As New ADOR.Recordset ' Create and ADO record set
*******************END HERE******************

when i run the my program there is an error message "Compile error: User-defined type not defined" and it will hight light the m_Report As New CrystalReport1...

actually when i copy this code from someone then when i rewrite the sentence "Dim m_Report As New" there is CrystalReport1 options.. how can i solve this program? thanks

Friday, March 9, 2012

Problem with report.papersize when printing in crystal report

Hi, i have a problem with report.papersize when printing in crystal report.

at first i'm using crpaperfolio value for used with printer that has default folio setting..

but yesterday the printer was replaced by printer which don't have default folio setting..so when i print the result is not good (not full)...

i already change the report.papersize property value with crdefaultpapersize but it still the same (not good), but if i change the value to crPaperLegal then the result is good.

my question is how to make my report papersize to be dynamic and doesn't have to change the papersize property manually?? like my problem above.(folio -> legal).

thanks alot.please, any suggestion or information are needed..
thanks.