Problem with printing dynamically created pages
Hello,
I have created a form in Designer 7.1 with one page. When clicking the Print button the script generates additional pages with the instance manager (addInstance) and then I want to print the generated pages. However, when using 'xfa.host.numPages - 1' in the print statement only the first page is printed. When I use a static end value, I get an error message with 'wrong end value for print'. Does anybody know, what I have been missing?
Thanks, Karin
No problem with Adobe Reader 8 or 9 .
Similar Messages
-
Problem with printing files created by tcpdf class
Hello,
I have problem with printing pdf files created with tcpdf php class which contain embedded fonts
http://www.tecnick.com/pagefiles/tcpdf/example_008.pdf
Could someone try to print that example file at his Reader (printing to file .ps will be fine).
I'm trying to determinate if problem is in my system (Ubuntu 8,04) in Reader or in class.
Thanks in advanceNo problem with Adobe Reader 8 or 9 .
-
Problem with printing ALV - repetitive page breaks
Hi,
I have a problem with ALV during printing or print preview. First, let me describe the situation. My requirement was to have a page break for every Material Number. This was working fine already. However, the user had a change of heart and decided he didn't want to have a page break for every material. Now, they wanted only one page for all materials.
I thought this was easy to do since I only needed to comment out the SORT (and all codes related to SORT) table that was used to create the page-break. Thing is, it's not working anymore. Although I was able to display one table only, the old page breaks still appear! For example, if there were 7 materials before, therefore, 7 page breaks with 7 blocks of internal tables. Now, only 1 full internal table is displayed while the other 6 are empty! Please help me how to get rid of the other tables or page breaks.
I hope this is clear. Thanks. I appreciate all the help I can get.Amit,
Using sort option.
Do one thing. Just create one ALV program with SORT options anf GROUP = '*'.
Now go to output and save the Variant. Print the report.
with out sort option and variant.
Now come back and Delete the sort options , activate the code.
And see the output. Choose the variant which you created beofre. and print the report.
See both the case. it triggeres the same output. you just copy paste it and un comment the commented sort code
Just test with this code,
REPORT zalv_total_sub.
TYPE-POOLS: slis.
INCLUDE <icon>.
DATA: layout TYPE slis_layout_alv .
DATA: BEGIN OF it_flight OCCURS 0,
carrid LIKE sflight-carrid,
connid LIKE sflight-connid,
fldate LIKE sflight-fldate,
seatsmax LIKE sflight-seatsmax,
seatsocc LIKE sflight-seatsocc,
END OF it_flight.
DATA: it_fieldcat TYPE slis_t_fieldcat_alv,
wa_fcat LIKE LINE OF it_fieldcat.
DATA: it_sort TYPE slis_t_sortinfo_alv,
wa_sort LIKE LINE OF it_sort.
CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE'
EXPORTING
i_program_name = sy-repid
i_internal_tabname = 'IT_FLIGHT'
i_inclname = sy-repid
CHANGING
ct_fieldcat = it_fieldcat
EXCEPTIONS
inconsistent_interface = 1
program_error = 2.
SELECT carrid
connid
fldate
seatsmax
seatsocc
FROM sflight
INTO CORRESPONDING FIELDS OF TABLE it_flight
wa_fcat-do_sum = 'X'.
MODIFY it_fieldcat FROM wa_fcat TRANSPORTING do_sum
WHERE fieldname = 'SEATSOCC' .
CLEAR wa_fcat.
*wa_sort-fieldname = 'CONNID'.
*wa_sort-up = 'X'.
*wa_sort-group = '*'.
*wa_sort-subtot = 'X'.
*APPEND wa_sort TO it_sort.
*CLEAR wa_sort.
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
i_callback_program = sy-repid
i_save = 'X'
i_callback_user_command = 'USER_COMMAND'
is_layout = layout
it_fieldcat = it_fieldcat
it_sort = it_sort
TABLES
t_outtab = it_flight
EXCEPTIONS
program_error = 1. -
Problem with string dynamically created
Hi all,
I have a problem a bit complex I don't know how to solve it: I have a dynamically created program that give a syntax error because a string created inside it is too long and don't stay on a single line, so the program created has some lines like this:
tot = d_1 + d_2 + d_3 + d_4 + d_5 +
d_6 + d_7 + d_8 + d_9 .
this code doesn't pass the syntax-check before it is executed and the error given is about the second line. So how can I avoid this error ? remember that the program is dynamically created so the code reported is for sample: it's possible to have more than 2 lines.
Thanks to anyone will give me an hint.
GabrieleHi!
Explicitely control the length of your statements when generating them. In your sample you could code your program to create the follwoing lines:
tot = d1 + d2 + ........ + d8.
tot = tot + d9 + d100 ...... + d150.
tot = tot + d151 ..... d999.
And so on ....
Regards,
Volker -
Problem with accessing dynamically created movie clips, returns null...
Hopefully this is a stupid question with an easy answer, if my code is straight forward enough.
I am using this snippet of code to create menu items, and then use the jCount variable below to give the clips an index number, like so (which seems to be working just fine):
for(var j:Number=0;j<xmlSubMenuLength;j++){
var mcSubMenuItem:mcSubMenu=new mcSubMenu();
addChild(mcSubMenuItem);
jCount++;
mcSubMenuItem.name = "mcSubMenuItem" + jCount;
//traces out names correctly
trace ("---------------------------------jCount NAME = "+ mcSubMenuItem.name);
mcSubMenuItem.x=mcMenuHolder.x+20;
mcSubMenuItem.y =mcMenuHolder.y;
mcSubMenuItem.y+= nextBtnY;
nextBtnY+=subtopicSpace;
global_subi.text = String(jCount); //i see the proper count of 10 in the text field
However, when I try to access the clips using this snippet:
for(var j:Number=0;j<Number(global_subi.text);j++)//
trace("GLOBAL SUBI = "+ String(global_subi.text)); //traces out 10, which it should
var scSubMenuItem:String = "mcSubMenuItem" + j;
var scSubContent:Object = this.getChildByName(scSubMenuItem);
trace(">>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>scSubContent:Object = "+ scSubContent); //returns null!
My last trace statement returns null. Can anyone see my error, or explain why I can't access my clips after they have been created?
Thank you muchly,
~ChiplehHi kglad,
Thanks for the response.
"it's not clear from the shown code that jCount is initialized." - I've posted the relevant code below, which shows that I'm initializing jCount.
"and it's not clear why you don't use j instead of jCount in that for-loop" - j is used as loop for creating the subtopic movie clips within the i for-loop. So, for each topic in i for-loop, create a group of suptopics using the j for-loop. The j for-loop re-initiates j every time the length of the subtopics is reached(if that makes any sense) - i.e. topic1>subtopic 1,2,3,4 : topic2>subtopic>1,2 : topic3>subtopic1,2,3,4
jCount is used to keep a running count of the total number of subtopcs created - i.e. per the example above, jCount will display 10.
var topicSpace:uint=button_mc.height;
var subtopicSpace:uint = button_mc.height;
var nextBtnY:uint = 0;//whatever;
var jCount:Number = 0;
function createXMLMenu(menuLength:Number,itemName:XMLList):void{
var navItemText:XMLList = itemName;
for(var i:Number=0;i<menuLength;i++)
var mcMenuItem:mcMenu=new mcMenu();
addChild(mcMenuItem);
mcMenuItem.btnTxt.htmlText = i+1 +". " +navItemText[i];
mcMenuItem.ivar = i;
mcMenuItem.name = "mcMenuItem" + i;
mcMenuItem.x=mcMenuHolder.x;
mcMenuItem.y =mcMenuHolder.y;
//kglad's addition
mcMenuItem.y+= nextBtnY;
nextBtnY+=topicSpace;
var subVar:Number = i;//mcMenuItem.ivar
//Submenu content
var xmlSubMenuLength:Number = xml.sim.bodyText.page[i].subpage.length()
var menuItemAttachment:MovieClip = MovieClip(mcMenuItem);
for(var j:Number=0;j<xmlSubMenuLength;j++)
var xmlSubPageNumber:XMLList = xml.sim.bodyText.page[subVar].subpage;
var subNavLinkNumber:Number = xmlSubPageNumber[j];
var subTitleText:String = xml.sim.bodyText.page[subVar].subpage.subNavItem[j];
var mcSubMenuItem:mcSubMenu=new mcSubMenu();
trace("mcSubMenuItem.ivar = "+ j+1);
var mc2Attach2:MovieClip = MovieClip(menuItemAttachment);
mcSubMenuItem.btnTxt.htmlText = j+1 +". " +subTitleText;
mcSubMenuItem.ivar = Number(subVar);
mcSubMenuItem.jvar = Number(j);
addChild(mcSubMenuItem);
jCount++;
mcSubMenuItem.name = "mcSubMenuItem" + jCount;
trace ("---------------------------------jCount NAME = "+ mcSubMenuItem.name);
mcSubMenuItem.x=mcMenuHolder.x+20;
mcSubMenuItem.y =mcMenuHolder.y;
//kglad's addition
mcSubMenuItem.y+= nextBtnY;
nextBtnY+=subtopicSpace;
global_subi.text = String(jCount);
mcSubMenuItem.lExtend.visible = false;
global_i.text = String(i);
Then I try to access the clips like so:
-The first for-loop access the topic movie clips, no problem, and traces out scContent correctly.
-The second for-loop traces out null everytime, when I would expect it to be tracing out the names of the subtopic movie clips.
function accessClips(){
//This will access the topic movie clips
for(var i:Number=0;i<Number(global_i.text);i++)
var scMenuItem:String = "mcMenuItem" + i;
var scContent:Object = this.getChildByName(scMenuItem);
trace(">>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>scContent:Object = "+ scContent);
//This is supposed to access the subtopic movie clips
for(var j:Number=0;j<Number(global_subi.text);j++)//
var scSubMenuItem:String = "mcSubMenuItem" + j;
var scSubContent:Object = this.getChildByName(scSubMenuItem);
trace(">>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>scSubContent:Object = "+ scSubContent);
Hope this makes sense, Chipleh confused. If the code is not clear enough, let me know and I'll try to further clarify.
Thanks again,
~Chipleh -
Hi, I'm having problems with viewing a web page created with Adobe Muse CC latest release, I followed the various guides provided by Adobe, but the problem persists. The problem especially concerns the distorted display (the contents do not fit on the page, so it suits size automatically) to a mobile web page to be displayed not on a normal browser, but in a WebView.
Hi, I'm having problems with viewing a web page created with Adobe Muse CC latest release, I followed the various guides provided by Adobe, but the problem persists. The problem especially concerns the distorted display (the contents do not fit on the page, so it suits size automatically) to a mobile web page to be displayed not on a normal browser, but in a WebView.
-
Problem with printing more than one page (ghostscript broken?)
Hello,
since one of the last package updates I have problems with printing more than one page. The print problems occurs as well with pdf files as well with printing websites. I use an actual KDE system with commercial turboprint printer driver. The first page always prints fine, but all consecutive pages are corrupted. As from a similar problem some months ago, I assume a broken ghostscript package. I tried to downgrade ghostscript to check that, but I get depency problems:
root@arch32 dieter]# ls -l /var/cache/pacman/pkg/ghostscript-*
-rw-r--r-- 1 root root 9906288 21. Mär 2010 /var/cache/pacman/pkg/ghostscript-8.71-3-i686.pkg.tar.xz
-rw-r--r-- 1 root root 11402624 8. Okt 22:44 /var/cache/pacman/pkg/ghostscript-9.00-1-i686.pkg.tar.xz
[root@arch32 dieter]# pacman -U /var/cache/pacman/pkg/ghostscript-8.71-3-i686.pkg.tar.xz
Löse Abhängigkeiten auf...
Suche nach Zwischen-Konflikten...
Fehler: Konnte den Vorgang (Kann Abhängigkeiten nicht erfüllen) nicht vorbereiten
:: libspectre: benötigt ghostscript>=9.00
[root@arch32 dieter]#
Anyone else having printing problems or a solution for my problem?
Thanks, DieterThis may not be related but I had a problem printing a pdf today whereby the second page got corrupted. The same pdf had printed fine several months ago. I realised that (long story) for some reason I had switched drivers (HP printer) from hpijs to hpcups. I installed the printer again as a "new" printer using the hpijs driver and it printed properly this time.
So it may be that the bug causes issues with some drivers. You could try an alternative driver for the printer as temporary workaround? -
Problem with printing ALV lists
Hey Guys,
I have a problem with printing ALV lists ,
I created a report with several ALV lists (not grids) on the same screen but when i attempt to print the report
it prints each alv list on a different page..so if i have 3 alv lists in the same report it will print the report on 3 pages
How can i print them all in one page?
Thanks in advance
Noha Salah.Hey Max,
I tried setting the Layout-list_append before my block_list_append function call
And setting the is_print-NO_NEW_PAGE , it printed the 3 lists on one page the only problem i have
is that the lists are truncated and the list formats has totally been messed up..how can i restore them back
to their original format? -
Problem with printing from Acrobat Reader XI
SInce I installed Acrobat Reader XI I have got problems with printing out pages. The text starts a bit down (2 cm) on the paper, resulting that the last part of the text on the page will be missing. And the missing part does not follow on page 2, it just don´t comes out!
It doesn´t matter what settings i click in on the print setting page in Acrobat Reader, it always gets the same result.
Does anyone know what can be the problem?No files appeared in C:\Users\Pavilion\AppData\Roaming\Adobe\Adobe PDF\Settings but they did appear in Distiller.
I tried to copied them from C:\Program Files (x86)\Adobe\Acrobat 11.0\Acrobat\Settings, but found they were already there. I copied them by adding -COPY before .joboptions in the name. Now they appeared in Printing Preferences with the -COPY added.
I tested a print from Word (using File / Print), but was not prompted for the filename or location. I checked my entire system and couldn't find the PDF file anywhere. I tried changing the Port to Desktop\*.pdf using Printer Properties, but that didn't work either.
I was able to successfully use the Acrobat menu item in Word & Excel to create a PDF but it automatically created the file on the Desktop without an option to change the filename.
After several days and hours, I gave up and installed Acrobat X on the W7 computer. I can still use Acrobat XI on the W8 computer. So be it!
Thanks anyway for your attempts to help. -
Problem with print photo 13x18
hi i have a problem with print photo (13x18) size it cut in the end of photo i use hp photo creations but if choose 100%size or full screen same result please what can i do; i am disapoint to buy this printer if photo print so
Cornelia-I, I used "single/image contact sheet" and there is a Lightroom
Template for 2x2 cells. I modified this a little to make the cells smaller
to provide room for the captions and margins for hole punching and binding
the sheets.
No, I surely did not type in each caption. The captions were Title plus
Caption taken from the metadata plus a comma and # sign preceding the
filename which was a date/sequence number. I was printing four different
images on each page and 36 images total so there were nine pages of the
booklet.
I didn't try the idea of switching the Photo Info option off and back on to
the custom package because I had already created a custom preset and as soon
as I discovered that all it needed was to have a period added or removed at
the end of the line each time, it was easy to simply switch back and forth
between the two text presets which was doing the same thing you recommended.
Whole job was simple once I discovered that the problem was simply that I
needed a new version of the text string every time I printed and couldn't
simply keep using the same one over and over. The time wasted was lost
trying to figure out what was causing the lines to suddenly become truncated
when previously they had been there. Which is why I wrote it up so others
need not waste that time if they want to do this. -
Hi All,
I'm developing a web application written in J2EE that uses Java Reporting Component (JRC) to display crystal reports from some filters recovered from a jsp and passed to a report .rpt previously designed and invoked just at runtime.
I have a problem with printing a PDF:
I want, after entering the filters in a jsp, to print a report in PDF format (WORD) without opening it
with Adobe Reader (Microsoft Word). The class of API JRC used for export is ReportExportControl.
Can anyone help me?
I wish a great day to You all.Hi Ted Ueda,
sorry for the delay of my answer.
I understand very well the problems related to security.
With the following code that I used to produce a report (PDF) at runtime,
is the PDF created on the server and then sent to the client, or is it directly created on the client as PDF
from RTF previously realized?
ReportExportControl exportControl = new ReportExportControl();
String report = report path;
ReportClientDocument reportClientDoc = new ReportClientDocument();
reportClientDoc.open(report, OpenReportOptions._openAsReadOnly);
Object reportSource = null;
reportSource = reportClientDoc.getReportSource();
//The method setConnectionProperties() stores all the connection parameters in the collection
//ConnectioInfos
ConnectionInfos connInfos = setConnectionProperties(request, reportClientDoc);
exportControl.setEnableLogonPrompt(false);
exportControl.setEnableParameterPrompt(false);
exportControl.setReportSource(reportSource);
exportControl.setDatabaseLogonInfos(connInfos);
//Single method to pass parameters to Crystal Reports. Using classes ParameterFieldController and
//ParameterFieldDiscreteValue
setReportParametersValue(reportClientDoc, reportParameters, subReportParameters);
ExportOptions exportOptions = new ExportOptions();
//Set the export format (PDF)
exportOptions.setExportFormatType(ReportExportFormat.PDF);
PDFExportFormatOptions PDFExpOpts = new PDFExportFormatOptions();
exportOptions.setFormatOptions(PDFExpOpts);
exportControl.setExportOptions(exportOptions);
exportControl.setExportAsAttachment(true);
try {
exportControl.getHtmlContent(request, response, getServletConfig().getServletContext());
} catch (ReportSDKExceptionBase e) {
throw new ApplicationException("error code", ": error message"); }
As, however, I predicted in my previous message about the direct printing on the client,
I read about ActiveX, but I don't know how to use them.
I read this information in the 'Crystal Reports for Eclipse Developer Guide' about "printMode" attribute:
"In ActiveX print mode, an ActiveX control is downloaded to the client machine and the report is send directly to the printer...."
The ActiveX alternative is a java applet that runs on the client and takes the pdf from the server and prints directly onto the clients through the commands that I used in the DOS command line:
1) AcroRd32.exe /p /h FILENAME
where
/p = print
/h = hide window
to print the report and
2) tkill AcroRd32
to close Adobe Reader, because it doesn't end automatically after printing and the command /h is used just to minimize the process.
I hope you can give me advice because I need to print directly on the client. Thank you -
Problem with Printing from Spool
Dear Experts,
I am facing the problem with Printing, Once i press the Print button, the spool is generated. But Instead of giving one page, It is generating the more than one page. Some times, the last page its getting is blank. I am confused how this happens.
Kindly solve my issue, this happen frequently.
Thanks & Regards,
SrinivasDear Siva,
Everything is ok in SPAD. This happen for few process order for COPI transaction.
Regards,
Srini -
HI folks,
I have a requirement for a form that has a common master page with a checkbox and text field in it. The document is basically a table that dynamically adds rows as the user adds entries. When the first page is full, a second page is dynamically created and the Master page format (including the checkbox & text field) applied to it.
When the user sets the checkbox on one page and/or adds text, all of the checkboxes on all of the dynamically created pages (in the master section) and all of the text boxes need to change to show the same values.
However, I can't figure out how to address the fields on the other pages. The number of pages changes from user to user, so I can't address them with a static reference.
Does anyone know how to keep these fields in synch?
Thanks in advance!It woudl be easier to show than to explain it ...can you share the file? You can send it to [email protected] Include a description of the issue with your email please.
Paul -
Really having problems with organising documents in pages. For example, deleting pages deletes the whole section and I cannot insert a section break as its greyed out & sending an object to background deletes several pages and trying to insert a text box autmatically creates new pages- what the **** is going on??? Is this programme really this badly thought out? I thought everything apple was supposed to be intuitive!?!?!? Help.
You can not insert a section break into a textbox.
You appear to have a lot of objects with wrap set, that once you take them out of the flow of text (by sending them to the background) causes the text to reflow and contract into fewer pages. Pages is almost unique in the way it forms up pages in Word Processing mode only so long as there is text on them.
I suspect you probably have hammered away at returns, spaces and tabs as well to position things, which only works to add to the mess.
Download the Pages09_UserGuide.pdf available under the Help menu and swot up a bit on how it works.
You may find this a usueful resource as well:
http://www.freeforum101.com/iworktipsntrick/
Peter
PS There is quite a lot of programming in OSX that is far from "intuitive". Pages is easy at one level, when using the templates, otherwise it can be quite frustrating. -
Dynamically create pages from categories and subcategories
We have over a thousand businesses listed for a Chamber of Commerce website we're developing. Each business falls under a top-level category (eg. "Services") and a sub-category (eg. "Plumbers"). I'd like to pull all the categories with their respective subcategories from Site Settings > Categories and use each as a link to a dynamically created page. For instance, click Services, and BC would render a page with all the service provider businesses listed (10 max with links to next page). Similarly, click Plumbers and BC would render a page with the business listing for each plumber.
I understand there is no direct access to the database, but there must be some reasonably direct way to do this. Right now the categories appear in a <select> box as part of a Web Apps Search Form.
http://mainedreamvacation.businesscatalyst.com/businesses-1
Thanks!I'm afraid I'm still new enough to BC that I didn't fully understand the part about having"...have a services web app sitting on an index page of the folder with the same name as the services web app and have them listed."
I have tried building this through a web app, but haven't been satisfied with the solution. I'd appreciate it if you could elaborate a bit more, offer an example, and/or point me to a tutorial on this subject.
Thanks!
Maybe you are looking for
-
Trouble with install disks - is it OK to make a copy of them?
Finally, I am trying to make a copy of the install disks that came with my MBP. This was recommended in several threads for preserving the original and having backups just in case. I used Disk Utility to make a disk image - choosing DVD/CD master, no
-
Prblm in Extnsn of VBAK : Quotation creation BAPI_QUOTATION_CREATEFROMDATA2
Hi ALL, Problem in Extension of VBAK during Quotation creation Using BAPI BAPI_QUOTATION_CREATEFROMDATA2. I have some Custom field of VBAK in Addional data tab B of transaction VA22. I am populating these fields using BAPI_QUOTATION_CREATEFROMDATA2.
-
Creative Vision:M 60 GB prob
I got my Vision:M back in January and it's been working great... until a few days ago. For the past week, it's been taking longer to load (though I only have 30 GB filled) and it's been freezing a lot (that's only happened once or twice before). Now
-
Info about project with in c++ with oracle as backend
can anyone let me know about some good projects or project websites for project in c++ with java as backend.
-
Hi SAP Guru's What is the difference between ARE-1 form and ARE-3 form? When ARE-1 form is required and where ARE-3 form is required? When CT3 form required? Rewrad points for helpful answer. Regards Ashis