page count problem .....

Visual Basic


  • 1. Some Clients Don't Display PDF
    What Up? Rolling out soon. Some Browsers will not display the PDF report exported by my VB.NET .ASPX page.(No Error Message, just a nice blank window) Clearing the client's IE cache solves the problem. Can I catch and handle this problem serverside in the code? Thanks for a hint. Walter
  • 2. way to suppress thru
    hey all, is there a way to suppress sections of a report thru thanks, rodchar
  • 3. Illegible Font while printing a crystal report
    I have a Crystal Report in C#.I am try to print it by giving the following code private ReportDocument repDoc=new ReportDocument(); repDoc.Load(Server.MapPath("Report1.rpt")); repDoc.SetDatabaseLogon("user","pass","Server","Metro"); repDoc.PrintOptions.PrinterName="Kyocera"; repDoc.PrintToPrinter(1,false,1,1); This same code when executed in any other machine will print the report correctly.But in my machine it will give a printed report with some illegible fonts.I tried installing Visual studio.Net and then tried.But I got the same error. Previously when I tried to run a report,toolbar was not working and was giving red marks instead of icons.Now that I have re-installed Visual Studio.Net this issue has been resolved.But the above error still persists.Any Solutions?
  • 4. Crystal Export to Word -> Format Required to Create a Word Table
    I created a Crystal Report that looks perfect when exported to Word, but the box and lines I use to simulate a table in the Crystal Report does not get created as a table in Word. Instead, it is created as an AutoShape, which is not very friendly to work with. What is the preferred way of formatting the Crystal Report so that a table is created in Word upon export? Thanks Garth
  • 5. grouping vs summary
    hey all, i have a report with groupings in it. Is there a way (without creating a new report) to only show the groupings and not the details? thanks, rodchar

Re: page count problem .....

Postby Vinod Tulsiani » Mon, 30 Jun 2003 16:08:24 GMT

There is special field called Total Page Numbers in crystal reports which
returns total number of pages in report


Re: page count problem .....

Postby Ashish Sharma » Wed, 02 Jul 2003 00:14:21 GMT

yeah but i need to set the printer after the report is displayed on the
form, and iam curious to know that whether that number can change with
setting different types of printers ?


Re: page count problem .....

Postby Ashish Sharma » Tue, 08 Jul 2003 22:21:25 GMT

I think my main concern is that, is the number of pages calculated
independent of the device selected ??
i.e either i choose any type of printer, or I export it to some file format



Similar Threads:

1.Current Page and Total Page Count by record break

Hi all,
I have to print more records into one pdf file.Suppose one record takes
up two pages of the report. If I print three records, I'm going to
print 6 pages. I have to take count of the current page and total page
count regarding one record.

I added the special fields 'PageNumber' And 'Total Page Count' on the
header of the report,but I get:

1 of 6, 2 of 6, 3 of  6....

What I need to get is:

1 of 2, 2 of 2, 1 of 2, 2 of 2, 1 of 2, 2 of 2, 1 of 2, 2 of 2, 1 of 2,
2 of 2, 1 of 2, 2 of 2.

How can I achieve this result? Obviously, one record can take up more
of 2 pages.
I'm using Crystal Reports 6.
Thanks in Advance.

Pier Paolo

2.How to count the number of pages printed when printing a non-contiguous range of pages

I don't think there is an easy way to do this... but maybe someone has has
to deal with this before.

I am printing documents using the ActiveDocument.PrintOut method in VBA.
I'd like to know how many pages were sent to the printer so I can log the
print job.  It is easy if the user prints the entire document, but what if
they print a range of pages (e.g. ActiveDocument.PrintOut

Does anyone know if there is
i) a variable available that returns the number of pages that was printed
ii) a function for calculating the number of pages in the string "p2s2-p3s5"
iii) anything else?

Any input appreciated!
-Andrew Head

3.Programming a TOC to have page counts (not page location)

Here is what I am trying to accomplish using Word 2007 and XP:

I want to create a TOC with the Title and Individual Section Page Counts 
using separate Individual Files to look like this:

Section No.	Title	No. of Pages
200500	General Provisions	5
200505	Project Closeout and Start-up	10

The section number and title are the file names (i.e. 2000500 General 
Provisions.doc) and are also included in the beginning of each document as 
well as a title (with a set style).
All files are located in the same folder.

Here is the current macro I am working with that was provided by someone on 
this site:  This macro does not input the correct page count for each file, 
in fact it places the 1st file page count for each file instead.

Looks like this:

200500 GENERAL PROVISIONS test.doc	3
SECTION 200523 VALVES DRAFT with index codes.doc	3
Table style settings-example.doc	3

The macro will put the correct page count ONLY if all the files are open.  
But considering I am trying to use this macro for 50+ documents at a time, 
this is not a viable solution.  Any help would be GREATLY appreciated; Ie 
been working on this for months. Thanks.

Sub TOCpgcnt()
' TOCpgcnt Macro
Dim fd As FileDialog
Dim PathToUse As String
Dim SourceFile As String
Dim Target As Document
Dim Source As Document
Dim numpages As Long

Set Target = ActiveDocument
Set fd = Application.FileDialog(msoFileDialogFolderPicker)
With fd
    .Title = "Select the folder containing the files."
     If .Show = -1 Then
         PathToUse = .SelectedItems(1) & "\"
     End If
End With
Set fd = Nothing
SourceFile = Dir$(PathToUse & "*.doc")
Do While SourceFile&g<;<> ""
    Set Source = Documents.Open(PathToUse & SourceFile)
    numpages = Source.BuiltInDocumentProperties(wdPropertyPages)
    Target.Range.InsertAfter Source.Name & vbTab & numpages & vbCrLf
    Source.Close wdDoNotSaveChanges
    SourceFile = Dir$

End Sub

4.count number of pages in a tiff file

I have a directory of tiff files. I need to loop thru the files and
count the number of pages in each file. Can someone point me to where
this info is stored?


5.Mail Page Count

6. page count of .tif file

7. Looking for Script who count pages printed on one or more print servers

8. .tif file page count

Return to Visual Basic


Who is online

Users browsing this forum: No registered users and 74 guest