Printer issues for HTML document.

Hello,
We are facing a critical problem.In our project we are using sql server 2005,from one of the SP we are generating an HTML document.Ideally this document should be printed in 2 pages.When we print that with Laser JET 2430 printer it gets printed in two pages but when we print that with other version printer it gets printed in four pages.Our client has different version printer due to which they get that document printed in four pages which they want to be in two pages only.
Workflow of this Document generation is as foloows:
1)When this SP is executed it generates a HTML document and places at some shared folder.
2)Then we open the document and apply follwing settings to document in order to view and print it properly as:
View>>Text Size>>Medium.
Also check if the size is A4 and margins are set to default values by doing the following.
Go to
File>>Page Setup
Size: A4
Left: 0.166 Right: 0.166
Top: 0.166 Bottom: 0.266
And then click on Print Preview.
When the document is previwed it should be on two pages only.
Basically here problem is that document gets printed perfectly when its Top margin is set to 0.166 but each printer has its own minimum Top margin settings due to which in different printers it takes different Top margin values for e.g when we print the document with HP Laser Jet P3005x its minimum Top margin are 0.196 then that document expands to 3 pages.Even we try to set this to 0.166 it gets overwritten with 0.196.
Can you please tell us what changes should be done to SP which is generating the HTML so that its setting doesnt change printer wise and document gets printed in two pages only.Or else can you please suggest the links of forums where we can discuss this issue.

Hi
Quest_RG,
This is actually very simple question, but it is an CSS question and not sql :-) once you open the HTML document the part of the SQL is over.
You can use CSS to configure the printing way. using page-break-before and
page-break-after you can insert CSS breaks where ever you want. for example:
content here
<DIV style="page-break-after:always"></DIV>
content here
I Hope this will help you,
[Personal Site] [Blog] [Facebook]

Similar Messages

  • Printing issue for documents more than 10 pages.

    My boss is having a printing issue with larger documents.  They start printing correctly, but then sometimes the font will change to something I don't recognize and can not read.  The computer is running Windows XP Professional.  She was using Adobe Reader 8 something, so I uninstalled it and downloaded Adobe Reader X.  This did not cure the problem.  I next tried uninstalling and reinstalling her printer and that did not fix the problem.  The printer was an HP laserjet 1320.  I replaced this printer with an OKI B411d.  This helped the problem, but did not cure it.  I've attached an example of the script.  Please does anyone have any idea how to fix this problem?

    HI,
    its in the same screen where you'he changed the number of pages. In this screen there are 3 sub-screens:
    1: Display mode
    2: Display area
    3: Save settings, here tick the option you need.
    best regards, Christian

  • FBZ5 print form for payment document , where is configuration for form ?

    Hello everyone.
    in transaction code FBZ5 print form for payment document.
    which transaction code that used for configuration form for print in FBZ5.
    plese help.

    Hi,
    Forms developed by ABAPer, discuss with Technical people.
    as a functional we can use form for check printing based on our comp requirement.
    FBZP (Payment method per comp code) we are assign form, that same form we are using for FBZ5 also.
    Creation Form T.Code: SE71
    Regards
    Viswa

  • Standard smartform and print program for sales document

    HI All,
    Is there a standard smartform and print program for sales document or sales order. If someone has worked with it do reply.

    Hi Shashank,
    What exactly you would like to print for Sales Orders in Smartforms..?
    regards,
    Ram.

  • I recieve my reciepts from all of my Apple purchases via email to my email cllient "MS Outlook 2003" on a Windows 7 Home Premium platform. I cannot format the print appearance of HTML documents within Outlook and the print border cuts of the last digit?

    I use MS Outlook as my email client under Windows 7 Home Premium and when I receive a reciept from Apple for purchases made for my iPhone (Stores or iTunes) the HTML formatting cuts off the last digit of the price paid on my eReceipts (the only receipts I get). Outlook 2003 does not allow for HTML print formatting since they (HTMLs) are formatted from the source (Apple). Can you help me to get Apple to fix this or find a workaround?

    Just to recap, this is a collection of ports I have collected over time for people who needed this information when setting up the HP ePrint app so that they could view their email from within the app.  I am certain other applications also need this information.  Although lengthy, I could not find a more comprehensive place to retrieve this information.  Feel free to post additional information, faulty information, or other related topics below as this is simply a collection of data and it would be practically impossible to test all of them. Thank you!
    Don't forgot to say thanks by giving "Kudos" if I helped solve your problem.
    When a solution is found please mark the post that solves your issue.
    Every problem has a solution!

  • Adobe Reader 9.1 Printing Problem for Encrypted Documents

    Hi All.
    Have a client who is on a early 2008 MBP 15" running OSX 10.5.7, using a AEBSn set at 802.11n with a HP LaserJet 4000 Series printer connected to the AEBSn and working great.
    The client received an encrypted PDF document that seems to break the printing system when you try to print.
    I installed Reader 9.1, ran Disk Util, reset PRAM (for good measure) and restarted.
    Everything prints fine, except this document. The stall happens when it goes to the printer -- printer blinks as if its receiving the document but times out. Cancel the print job and try something else, no problems.
    I'm stumped.

    Guess no one can answer this.

  • Printing issue in word document

    hi,
     i am facing problem with printing word document, the alternate lines are not getting printed, theres no issue in printing pdf files. please suggest

    Hi @nish123 , and welcome to the HP Forums!
    I understand you're having issues printing, I'd like to help!
    I have a couple of questions before we get started:
    -What printer are you using?
    -Do you have any issues printing from Notepad?
    In the meantime, I'd recommend removing the ink cartridges, and performing a power reset.  Disconnect the power cord from the printer and the power outlet, then wait 60 seconds. After 60 seconds, plug the printer back in. Ensure you plug the printer directly to a wall outlet. Make sure to bypass any sort of surge protector or power bar.
    I would also suggest downloading and running the HP Print and Scan Doctor.
    Good luck and please let me know the results of your troubleshooting steps. Thank you for posting on the HP Forums!
    Please click “Accept as Solution " if you feel my post solved your issue, it will help others find the solution.
    Click the “Kudos, Thumbs Up" on the right to say “Thanks" for helping!
    Jamieson
    I work on behalf of HP
    "Remember, I'm pulling for you, we're all in this together!" - Red Green.

  • Printer Setup for HTML reports (Landscape)

    I'm trying to print an HTML report in Landscape, the Report Orientation VI only works with Standard Reports, and I can't find anything that will let me modify the "Printer Setup"
    Anyone done this?

    Jeff,
    To print an HTML report it first has to be rendered. To render HTML, you need a browser. For example, you can render HTML in either Internet Explorer or Firefox or Opera, and all three might render the same data slightly differently. To simplify the situation let's say that you're using IE. Once IE renders the HTML, you then have to get it to send the rendered output to the printer. So you can see why it isn't time or cost-effective for NI to try and necessarily support these functions. For the end user however, I'd guess that quite a few people have had this problem.
    I have had to do a lot of digging around to get HTML reports to print right. My solution has been to use an ActiveX container with an IWebBrowser2 object (Internet Explorer). This will let you load and print HTML reports programatically however (glancing back over some old code) I don't see immediately how you can print a report in Landscape. With an ActiveX container however you can call the IE print preview function which will let you (the user) modify the report printing to Landscape. It's not a programmatic solution since you have to interact with the GUI but it works. Also, once you set the setting to Landscape, everything printed afterwards using your ActiveX container will also print in Landscape.
    Something else which may not apply to you (but maybe--I'll at least mention it) is printing a landscape single image... that's usually why I needed to print landscape... to print out a full page screenshot of a graph or something. I do this in portrait mode by just attaching the control image but rotating it first and adding the HTML code to make it 100% of the vertical page.
    Last but not least, if you are 100% set on using a programmatic implementation to print a landscaped report (no user interaction), the best thing to do would be to build on an ActiveX implementation so that your report is being loaded and printed from an embedded IWebBrowser2 object. With the IWebBrowser2 object there is an option for using a pre-defined print template. This option is NOT for the faint of heart and requires you basically to re-program the whole IE print-preview functionality. However, it's not impossible either, it just takes the time of learning basically how the IE print preview interface works and then adapting it to your application (in this case, landscaped printouts). This is also the ONLY way to change HTML report headers and footers. The print preview interface in IE is written entirely in javascript--you can get details on msdn (search for "print preview templates"). However, there isn't really enough info there to do things with any ease. So....
    If you get to the point where you get an ActiveX container working and want to fool with the IE print preview javascript templates, let me know. I have extracted the entire template and associated images from the windows DLL it is stored in so I could adapt it and change the headers and footers for my reports and things of that nature.
    Now that I mention it, I believe that is the only way also to actually set landscape or portrait--by programmatically changing the printing margins (so it prints 11x8.5 instead of vice versa).
    Anyway, hope that helps...

  • For some reason I am no longer able to print website pages. The printer works for regular documents but its not printing Firefox website pages.

    I don't know why it stopped printing documents that I want to print out such as airline confirmations or directions from a website etc., what are normal documents to print. It says "An unknown error occurred while printing"

    hello ahegarty, you could try using the [https://addons.mozilla.org/firefox/addon/pdfjs/ PDF Viewer] addon, for more details also see [[PDF files are blank and can't be downloaded on Mac]].

  • Print Credit for returns Document through My report

    Hi,
    I have a credit note / debit note print zreport. This report is picking data from BKPF, BSEG tables. Also report are using logical data
    DD - Customer Debit Note number like 500368 and DG - Customer Credit Note Number like 100506, that is printing through my report.
    But user wants data for Credit for returns - RE & Warranty credit note - ZWCN, which is coming from VBRK table. Document number is like 90010446.
    How can i print these number's through my report.
    Note: - Logical Database Name : - BRF.. because it is standard, then how can i change in it.
    Regards
    Edited by: @ABAP@ on Jan 30, 2010 5:59 PM

    Chained question series are not allowed.
    Thread locked.

  • Quality Certificate Printing Issue for assembly

    Dear Expert
    I am not sure how to achieve this(point 2 below) or even if its possible to do in standard SAP or not. So requesting your help to provide some suggestions.
    We are in Chemical manufacturing business and the third party manufacturer produce certain product for us and send those to our customer or we buy from them . They produce COA for each batch of same product and send to us / customer. One particular product can have more than 10 batches in a shift / day , but when we receive it in SAP against PO we create a unique batch for the inventory. Third party manufacturer not using SAP system now, but we are planning to bring them in our ongoing QM Implementation landscape. In SAP the third party manufacturer is set up as a "Plant" and we Procure all products from them and sell to customer. They use different stand alone system for Production & QM now. The batch number they produce currently different than the batch number we receive.
    Third party manufacturer produce different products e.g. P1, F1
    1. When they produce P1 in say 10 different batches for P1 , they inspect all batch results and send 10 COA against the inspected result. This scenario we can easily map in SAP using 89 Inspection Type and Lots.
    2. When they produce F1 with batch XX, they do not want to record any result for batch XX, but they only want to reference pre- identified batch from P1 and print the test result into COA for  batch XX. For integrated SAP system (PP) we would have achieved that easily, but in this case Production is out of SAP. We have plan to  make batch XX available in SAP using some program or manually.
    As I said those third party not in SAP now, so when we will implement only SAP QM for them , what can be the best approach to achieve this (point 2)?
    Any input will be highly appreciated.
    Thanks
    SK

    Hi SK,
    I assume that you do not have manufacturing set up for P1 and F1 products and hence procuring from outside manufacturer and selling it to your customer.
    I have few queries here to understand it further correctly!
    Why the third party manufacturer is created as plant code in your SAP system? Is that the legal entity which belongs to your company code? If not, then it should be a normal vendor.
    Are you receiving the goods in your plant or your manufacture directly dispatches the same to your customer?
    As per my understanding, it doesn't matter which ERP system your vendor is following. Hence possibly there could always be the difference between material and/or batch codes that your vendor follows and codes that you follow in your plant. Finally the COA should contain the same batch numbers' reference which your end customer is going to receive and not the internal numbering. I also understand that you have issues with F1 product only as for P1 the process you are following suits you.
    Your vendor does not wish to inspect the consignment for F1 while they dispatch from their premises and want the reference of P1 results for F1 COA printing purpose. This could be feasible with inspection lot copy functionality but your vendor should be on SAP and COA should be printed by you vendor.
    As COA is mandatory for P1 and F1, what I could suggest is, you can print COA at your plant until you supplier runs on SAP. You may have to carry out goods receipt at your plant for inspection lot generation.
    Anand

  • HP Officejet Pro 8500 Wireless makes me set printer settings for EVERY document.

    Ever since updating to Mavericks I have to tell the printer EVERY, SINGLE TIME I print, what to do...ie what paper size to use.  I have the correct setting in Settings/Preferences and the drivers are up to date.
    What's up with this??  Anyone having the same problem or have a solution.  This is getting old having to jump hoops just to print a document! 
    Thanks!

    In the Print dialog, select Show Presets from the Presets menu. In the sheet that drops down, uncheck the box marked
    Reset Presets Menu to "Default Settings" After Printing
    Click OK. Then select Last Used Settings or a custom preset that you created from the menu.

  • Fbl3n vendor code  issue for RE document type

    Hi
    I entered  in fbl3n t.code GR/IR account number then i execute it shows for document type WE (Goods receipt) assignment no,document no,doc type,doc  date,vendor code.but in RE(Invoice receipt) document type,vendor code only not display all other datas shown,is this possible to dispay vendor code in RE document type.plz suggest
    Regards
    Sam

    First of all you will have to copy the FM SAMPLE_INTERFACE_00001650 to a Z one .
    Then you will have to loop where the offseting account would be blank , then refer the same to BSEG or FAGALFLEXA or Vendor / customer open items .
    Then you will have to pass the values in the fields if already there in structre - RFPOS else append the structure and create new fields in structure .
    This is how you will have to proceed .
    Take the help of an abaper for Code and appending the structure .
    Cheers ,
    Dewang

  • Print issue for smartform by zebra QL420plus in SAP

    Hi All,
    I created a smartform in SAP to print out label on zebra QL420Plus.
    Current the key issue is that I can not print out smart form from SAP to QL420plus directly. I need to print some text from windows by notepad or word after I power on QL420plus. Then QL420plus seem to be active. So at this point I can print out smartfrom from SAP to QL420plus. I am not sure what’s wrong with QL420plus equipment?
    Thanks.
    Crystal

    did you try like this :
    Spool
    data: in_list     like  pri_params-plist,
          in_dataset  like  pri_params-prdsn,
          in_spool(1) type  c,
         d_dest          like pri_params-pdest.
    NEW-PAGE PRINT ON
                NO-HEADING
                NO-TITLE
                LIST NAME in_list
                LIST DATASET in_dataset
                LINE-SIZE 132
                LINE-COUNT 65
                COPIES 1
                NO DIALOG
                KEEP IN SPOOL ''
                DESTINATION d_dest
                NEW LIST IDENTIFICATION in_spool
                ARCHIVE MODE '1'
                IMMEDIATELY ''.

  • Printing issue of grn document

    Hi,
        all the setting for print out of grn had been done ,spool request is also generating, but in mb90
      after entering required data
    i.e out type,t med,s order-01,p mode-1,mat doc yr-2009,
    system give green message-no messages for initial processing exist.
                                                                                    thnx.

    Hi Amit ,
    As per ur query , the messages were already processed.
    If you wish to view the same, enter the processing mode as 2.
    Hope it works.
    Regards
    Ramesh Ch

Maybe you are looking for

  • Facebook doesn't work with Firefox 28.0 + Flashplayer 12,0,0,77

    Hey everybody, first of all let me tell you the specs of my system: Laptop: Windows 7 Home Premium  64 bit Acer Aspire 7745G Laptop Intel i7 Q720 @1,6 GHz 4,00 GB RAM Browser: Mozilla Firefox 28.0 Flash Player Version: 12,0,0,77 Problem: So the Flash

  • Exporting a mailing label report to PDF shifts the address off ...

    Hi. The report is created using the wizard "File->New->Mailing Label Report". Everything looks good at the preview. Following are the dimensions: - 4 X 1 inches - 2 labels across, 10 down - Paper would be 8-1/2 X 11 inches (Letter sized) (labeled) pa

  • Management Global Employee Vs Concurrent Employment

    All,      We are moving towards implementing u201CManagement Global Employeeu201D. I am new to u201CManagement Global Employeeu201D   and I found some good documentation at www.saphelpbykevin.com  . Kevin you did great job there like you did with us

  • Contained APs

    Hi, I heve problems  with clients connected to the wireless network, the network disconnect and reconect them or they suffer low signal even when there are several APs, I found this log on the wireless lan controller Warning: Our AP with Base Radio M

  • Is there any possibility in LABVIEW to Create a release mode EXE like VC++

    iam krishnaprasad. iam new to LABVIEW. i have 1+year experiance on VC++6.0. Is there any possibility in LABVIEW to Create a release mode EXE like VC++ . if there please suggest me how to create  it.. Solved! Go to Solution.