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 Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Crystal Report temp file created for every report printed builds up. 1

Status
Not open for further replies.

LLBP

IS-IT--Management
Jan 31, 2002
39
US
I am using a Crystal Report to print a label from my VB.NET application on a Windows XP machine using the code below. It prints fine but over time I have noticed the C:\documents and settings\username\local settings\temp folder is almost 2GB in size and is full of .rpt files. One machine has so many I can’t open the folder from the command prompt to delete them.

How do I prevent these files from being created?


Friend WithEvents SerialLabel As TraceabilitySystem.SerialLabel
Me.SerialLabel = New TraceabilitySystem.SerialLabel

Me.SerialLabel.PrintOptions.PaperOrientation = CrystalDecisions.Shared.PaperOrientation.DefaultPaperOrientation
Me.SerialLabel.PrintOptions.PaperSize = CrystalDecisions.Shared.PaperSize.DefaultPaperSize
Me.SerialLabel.PrintOptions.PaperSource = CrystalDecisions.Shared.PaperSource.Upper
Me.SerialLabel.PrintOptions.PrinterDuplex = CrystalDecisions.Shared.PrinterDuplex.Default

Me.SerialLabel.Load()
Me.SerialLabel.SetParameterValue("@SerialNumber", Test_A.SN)
Me.SerialLabel.PrintToPrinter(1, False, 1, 1)
Me.SerialLabel.Close()


Thanks,
Brent
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top