Quantcast
Channel: SCN : Unanswered Discussions - SAP Crystal Reports, version for Visual Studio
Viewing all articles
Browse latest Browse all 2556

how to suppress line in pdf if pagenumber > 1 by using vb.net code ?

$
0
0

Dear Experts ,

 

I am using following query to export my report in to pdf .

 

rpt.ExportToHttpResponse(CrystalDecisions.Shared.ExportFormatType.PortableDocFormat, Response, False, "Quotation") ... I need to suppress line if page number > 1 . For ex if total pagecount is 3 , in first page alone I need to display line object .

 

If I generate report in RPT format then I can easily achieve this by following query

 

Dim currentpagenumber AsString = BL.ViewInfo.PageNumber.ToString           

Dim nPages AsInteger = rpt.FormatEngine.GetLastPageNumber(New CrystalDecisions.Shared.ReportPageRequestContext)

rpt.ReportDefinition.ReportObjects.Item(i). obj.ObjectFormat.EnableSuppress = True ,

 

But same thing is not working when generate from PDF ,

 

Is it possible to suppress line in pdf if pagenumber > 1.


Viewing all articles
Browse latest Browse all 2556

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>