Skip to Content
author's profile photo Former Member
Former Member

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

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 As String = BL.ViewInfo.PageNumber.ToString

Dim nPages As Integer = 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.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Best Answer
    Posted on Aug 30, 2013 at 07:53 PM

    Much easier if you do this using a suppression formula in the Designer. So I moved your post to the Design forum

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.