flashpaper using cfdocument = what a letdown!

Ask a Question related to Coldfusion - Advanced Techniques, Design and Development.

  1. #1

    Default flashpaper using cfdocument = what a letdown!

    I was all excited to start migrating stuff over to flashpaper format. Thought
    it was the "wave of the future"...

    Problem is that the margins show one way in flashpaper and then when I go to
    print the page the bottom margin is about twice the size it display in
    flashpaper. Makes it impossible to use flashpaper to create business card
    templates using an avery label which needs the bottom and top margins to be 1/2
    inch.

    for an example go [url]http://www.sevenblue.com/cards/test.cfm[/url] and print the first
    page.

    Can anyone help? This seems to be a major bug.

    ievolve Guest

  2. Similar Questions and Discussions

    1. cfdocument FlashPaper High Resolution Images
      We have built a special report that must be formatted exactly the same every time in all browsers and platform. We currently have the report built...
    2. cfdocument flashpaper javascript problem
      The livedocs say that this will not work with Flashpaper and Javascript. Is there a way that anyone knows how to change the display:none to...
    3. cfdocument flashpaper broken
      We have cfdocument code that generates a FlashPaper file of an invoice. It works for several days, then stops. When it stops working, there is no...
    4. flashpaper
      C:\Documents and Settings\Mvestel\Local Settings\Application Data\Macromedia\Macromedia FlashPaper\OfficeTemplates ...
    5. cfdocument format="flashpaper"
      Does anyone know how to leverage the new <cfdocument> to bring up a flashpaper form that will display the new dynamic data grid feature in CFMX 7? ...
  3. #2

    Default Re: flashpaper using cfdocument = what a letdown!

    Hello ievovle: You didn't send any cfm code that created your page, so I am
    not able to see what's going on here. Cfdocument provided several attributes
    for controlling left, right margins, and top bottom margins. Are you using
    the right attributes? Regards.

    macromedia developer Guest

  4. #3

    Default Re: flashpaper using cfdocument = what a letdown!

    are you printing the document on the same page size that you specified for the flashpaper document ?
    prayank Guest

  5. #4

    Default Re: flashpaper using cfdocument = what a letdown!

    Yes I am printing the document on an 8.5x11 standard sheet of paper.

    Problem is that what shows on the screen is not what comes out of the printer.
    Can someone verify this?

    I am using the proper attributes, and the document shows on the flashpaper
    perfectly. Problem is that the formatting shown on the flashpaper is not what
    comes out of the printer.

    If anyone has a flashpaper example that will print on an avery business card
    stock I would love to see how that was even possible in flashpaper, becuase as
    for now I do not believe this is even possible.

    Heck someone want a challenge? Print a page in flashpaper with just 1 box on
    it. .75 inches margins left and right, and .5 inch margins top and bottom. A
    plate of cookies go to the preson who can do this and post the .cfm, I dont
    know if this is even possible. (extra credit: a glass of milk for someone who
    can place a grid of 5 rown and 2 columns in there too, this is an avery label)

    I just dont know if it is possible.


    ievolve Guest

  6. #5

    Default Re: flashpaper using cfdocument = what a letdown!

    Hi ievolve: It would really help if you can send your CFM code, and also the
    html content, css style sheet you used for producing the page. Without them
    is not possible to tell exactly what the problem is. What I suspect is that
    you are rendering plain text (non-html) . Remember that cfdocument tag is
    meant to process HTML pages. If the content is not HTML, then cfdocument goes
    into a fall back mode to render the content as plain text. While in that mode,
    the layout can be off by quite a bit. The issue with rendering plain text in
    cfdocument , and the result does not respect margin settings is a known
    problem. We have assigned it a bug number #59933. I would suggest that you
    use CSS style sheet, and specify font name, and font size, in addition to the
    margin attributes on CFDOCUMENT tag. This gives the rendering engine specific
    information as to how to lay it out more precisely. In addition, you want
    want to consider using cfreport tag instead of cfdocument. You can use the
    report builder to layout the cards. You have much more control over it.
    regards. s gong macromedia server development

    macromedia developer Guest

  7. #6

    Default Re: flashpaper using cfdocument = what a letdown!

    I am doing the exact same thing. I found that ColdFusion scales the image and
    can sometime distort it. So this is what I did:
    (Note: This is basically the same code I used to print cards directly from
    Internet Explorer)

    I have only had one problem with this code. For some reason on 2 servers I
    have tested it on, the flashpaper document displays correctly, but on my actual
    hosting server it does not. It just sits there and doesn't do anything. I
    tried in PDF and it actually states that it is an invalid PDF file format. If
    anyone could help me with this problem I would really appreciate it.

    Thanks


    <cfset tempFile = "<html><head><title>Membership
    Cards</title><style>body{font-family: Arial, Verdana, Sans-Serif;font-size:
    12px;padding: 0px;margin: 0px;background-color:
    ##ffffff;}.pagecell1{position:relative;top:0px;lef t:0px;width:671px;height:960px
    ;}.pagecell2{position:relative;top:0px;left:0px;wi dth:671px;height:959px;}</styl
    e>">
    <cfset l = 0>
    <cfset r = 0>
    <cfloop index="i" from="1" to="10">
    <cfset topLocation = r*val(sa.cardHeight)>
    <cfset leftLocation = l*val(sa.cardWidth)>
    <cfoutput>
    <cfset tempFile = tempFile &
    "<style>.ccell#i#{position:absolute;top:#topLocati on#px;left:#leftLocation#px;wi
    dth:#sa.cardWidth#px;height:#sa.cardHeight#px;back ground-color:##FFFFFF;}</style
    >">
    </cfoutput>
    <cfset l = l + 1>
    <cfif l eq 2>
    <cfset r = r + 1>
    <cfset l = 0>
    </cfif>
    </cfloop>
    <cfset tempFile = tempFile & "</head><body>">
    <cfset j = 1>
    <Cfset firstpage = true>
    <cfoutput query="myquery">
    <cfif j eq 1>
    <cfif firstpage>
    <cfset tempFile = tempFile & '<div class="pagecell1">'>
    <cfset firstpage = false>
    <cfelse>
    <cfset tempFile = tempFile & '<div class="pagecell2">'>
    </cfif>
    </cfif>
    <cfset tempFile = tempFile & '<div class="ccell#j#">'>
    Card stuff
    <cfset tempFile = tempFile & '</div>'>
    <cfset j = j + 1>
    <cfif j gt 10>
    <cfset tempFile = tempFile & '</div>'>
    <cfset j = 1>
    </cfif>
    </cfoutput>
    <cfset tempFile = tempFile & '</body></html>'>

    <cfdocument format="flashpaper" fontembed="yes" pagetype="letter"
    marginbottom=".5" margintop=".5" marginleft=".75" marginright=".75"
    orientation="portrait">
    <cfoutput>#tempFile#</cfoutput>
    </cfdocument>

    jkrapsicher Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139