Writing Code
 Crystal Reports Forum : Crystal Reports for Visual Studio 2005 and Newer : Writing Code
Message Icon Topic: Setting PaperSize Post Reply Post New Topic
Author Message
N11689
Newbie
Newbie


Joined: 13 Jun 2007
Location: United States
Online Status: Offline
Posts: 22
Quote N11689 Replybullet Topic: Setting PaperSize
    Posted: 11 Sep 2007 at 1:17pm

Report created in standalone Crystal XI Release 2 (w/Service Pack) 2.  Using Crystal .NET assemblies to execute report through VB.NET (2005).

Have a report with a page size of 4" x 4" so it can print to a 4" x 4" label.
 
I select my label printer and then in vb.net issue the command: objReportDocument.PrintOptions.CopyFrom(objPrinterSettings, objPageSettings)
 
and I get a STACKTRACE error.
 
"NotSupportedException - Specified method is not supported.
 
STACKTRACE:  at CrystalDecisions.CrystalReports.Engine.PrintingConverter.PaperKindToPaperSize(PaperKind kind) at CrystalDecisions.CrystalReports.Engine.PrintOptions.CopyFrom(PrinterSettings printer, PageSettings page)..."
 
And the error goes on a bit.
 
We use the copyfrom method to print all of our other reports (portrait or landscape) without issue. But, it does not seem to like this paper size.  Has anyone else come across this?  or know how to set a special paper size?
 
IP IP Logged
Post Reply Post New Topic
Printable version Printable version

Forum Jump
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum



This page was generated in 0.031 seconds.