Ask a Question related to Coldfusion - Advanced Techniques, Design and Development.
-
ievolve #1
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
-
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... -
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... -
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... -
flashpaper
C:\Documents and Settings\Mvestel\Local Settings\Application Data\Macromedia\Macromedia FlashPaper\OfficeTemplates ... -
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? ... -
macromedia developer #2
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
-
prayank #3
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
-
ievolve #4
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
-
macromedia developer #5
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
-
jkrapsicher #6
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



Reply With Quote

