CodeGuru Forums -
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic Newsletters VB Forums Developer.com


Newest CodeGuru.com Articles:

  • Installing SQL Server 2008
  • Writing UDFs for Firebird Embedded SQL Server
  • [Updated] Shutdown Manager
  • Building Windows Azure Cloud Service Applications with Azure Storage and the Azure SDK

  • Search CodeGuru:
     



    Go Back   CodeGuru Forums > Visual Basic Programming > Crystal Reports
    FAQ Members List Calendar Search Today's Posts Mark Forums Read

    Reply
     
    Thread Tools Search this Thread Rate Thread Display Modes
      #1    
    Old March 17th, 2005, 06:39 AM
    insearchof insearchof is offline
    Junior Member
     
    Join Date: Mar 2005
    Posts: 3
    insearchof is an unknown quantity at this point (<10)
    Exclamation Why custom paper size cannot be used on other machine?

    I created a customized paper size on dev machine named "DO" on "EPSON" printer, then designed the report I wanted. The report looks fine when run, the way I want the format to be. Then I compiled my vb.net application and copied the application & report to client machine. I created the customized paper size, gave the name "DO" on the "EPSON" printer (using same driver as on dev machine). Then I run the application to generate the same "DO", but the preview of the report showed in "Letter" format instead of the "DO" format I created. What did I do wrong?

    The "DO" format prints like this:
    some headers...
    details...(10 lines)
    page footer... (some lines)

    on the client machine?
    same headers...
    details...(10 lines)
    blank lines...(lots of them!!!)
    page footer...

    I tried setting default paper size on "EPSON" printer to "DO"...but in preview it still shows "Letter"...and when i print...headers and details appear...but not page details...

    what am i doing wrong??? please help...what m i missing to get the "DO" format to work on the client machine???
    Reply With Quote
      #2    
    Old March 18th, 2005, 03:54 AM
    K.Babu's Avatar
    K.Babu K.Babu is offline
    Moderator
     
    Join Date: Aug 1999
    Location: India, TamilNadu, Chennai.
    Posts: 269
    K.Babu is on a distinguished road (20+)
    Re: Why custom paper size cannot be used on other machine?

    Hi,

    By defaut crystal report will take printer default setting, if you changed manually in crystal report printer setup, then it will print the report file printsetttings.

    Make sure the selected page setup will support in other machine printers.

    yours friendly,
    K.Babu

    Quote:
    Originally Posted by insearchof
    I created a customized paper size on dev machine named "DO" on "EPSON" printer, then designed the report I wanted. The report looks fine when run, the way I want the format to be. Then I compiled my vb.net application and copied the application & report to client machine. I created the customized paper size, gave the name "DO" on the "EPSON" printer (using same driver as on dev machine). Then I run the application to generate the same "DO", but the preview of the report showed in "Letter" format instead of the "DO" format I created. What did I do wrong?

    The "DO" format prints like this:
    some headers...
    details...(10 lines)
    page footer... (some lines)

    on the client machine?
    same headers...
    details...(10 lines)
    blank lines...(lots of them!!!)
    page footer...

    I tried setting default paper size on "EPSON" printer to "DO"...but in preview it still shows "Letter"...and when i print...headers and details appear...but not page details...

    what am i doing wrong??? please help...what m i missing to get the "DO" format to work on the client machine???
    __________________
    Please avoid sending emails to my personal mail:
    write your doubts as thread in Codeguru
    Crystal Reports Forum
    .

    This will help all people having similar matters, and will let people who know solutions on the specific topic
    share their knowledge.

    Visit my company web site (Qmax Test Equipments Private Limited)

    Yours friendly,
    K.Babu
    Reply With Quote
      #3    
    Old March 19th, 2005, 01:20 AM
    insearchof insearchof is offline
    Junior Member
     
    Join Date: Mar 2005
    Posts: 3
    insearchof is an unknown quantity at this point (<10)
    Unhappy Re: Why custom paper size cannot be used on other machine?

    Quote:
    Originally Posted by K.Babu
    Hi,

    By defaut crystal report will take printer default setting, if you changed manually in crystal report printer setup, then it will print the report file printsetttings.

    Make sure the selected page setup will support in other machine printers.

    yours friendly,
    K.Babu
    Here is how I did it, I installed the epson driver, then added a format named "DO" with customized widthxheight. Then in CR, I go to printer setup to choose the "DO" format to deisgn the report. When I preview the report in VB.NET application, it works fine and so does the printing.
    When I deploy the application to client machine, I also installed the same driver, created the same customized paper "DO". But when I generate the report, the report is generated in "Letter" format. I even go to the extend of setting the EPSON printer as default printer...choose the default paper size to "DO"...but to no avail...the report is still being generated in "Letter" format...
    Cant figure out what went wrong...
    Reply With Quote
      #4    
    Old March 24th, 2005, 01:28 AM
    hongkwok hongkwok is offline
    Junior Member
     
    Join Date: Mar 2005
    Posts: 3
    hongkwok is an unknown quantity at this point (<10)
    Re: Why custom paper size cannot be used on other machine?

    Quote:
    Originally Posted by insearchof
    Here is how I did it, I installed the epson driver, then added a format named "DO" with customized widthxheight. Then in CR, I go to printer setup to choose the "DO" format to deisgn the report. When I preview the report in VB.NET application, it works fine and so does the printing.
    When I deploy the application to client machine, I also installed the same driver, created the same customized paper "DO". But when I generate the report, the report is generated in "Letter" format. I even go to the extend of setting the EPSON printer as default printer...choose the default paper size to "DO"...but to no avail...the report is still being generated in "Letter" format...
    Cant figure out what went wrong...
    I found the same problem.
    I can't even print corrently dev machine.

    I'm using win XP, VS.NET 2003 (VB.NET), crystal report 9
    Reply With Quote
      #5    
    Old April 1st, 2005, 08:10 AM
    hongkwok hongkwok is offline
    Junior Member
     
    Join Date: Mar 2005
    Posts: 3
    hongkwok is an unknown quantity at this point (<10)
    Re: Why custom paper size cannot be used on other machine?

    I have solved this problem.
    The solution is to create a print button yourself and don't the print button of report viewer.

    You may refer to
    http://support.businessobjects.com/l...s/c2011657.asp

    use printtoprinter method as mentioned in the kbase
    Set the custom paper size be the default paper size of printer

    when you created the crystal report, do NOT choose any EPSON printer at "printer setting". I've selected a RICOH printer instead at "printer setting" and then work fine at client's EPSON printer!!

    However, if I selected EPSON at printer setting, it can't work well even at preview!!
    Reply With Quote
    Reply

    Bookmarks
    Go Back   CodeGuru Forums > Visual Basic Programming > Crystal Reports


    Thread Tools Search this Thread
    Search this Thread:

    Advanced Search
    Display Modes Rate This Thread
    Rate This Thread:

    Posting Rules
    You may not post new threads
    You may not post replies
    You may not post attachments
    You may not edit your posts

    BB code is On
    Smilies are On
    [IMG] code is On
    HTML code is Off
    Forum Jump


    All times are GMT -5. The time now is 06:19 PM.



    Acceptable Use Policy

    internet.comMediabistrojusttechjobs.comGraphics.com

    WebMediaBrands Corporate Info


    Advertise | Newsletters | Feedback | Submit News

    Legal Notices | Licensing | Permissions | Privacy Policy


    Powered by vBulletin® Version 3.7.3
    Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
    Copyright WebMediaBrands Inc. 2002-2009