How to do the "auto format" text?
Hello everyone.
I wrote a program to automate the layout in c#. (but would be happy to answer any other language).
My script (program) generates a text file (format taggedtext) for insertion in InDesign.
The program opens the InDesign file that has two columns of loan. I paste text in a text block.
Here is a code example:
....
Type inDesignAppType = Type.GetTypeFromProgID ("InDesign.Application.CS3");
InDesign.Application myInDesign = (InDesign.Application) Activator.CreateInstance (inDesignAppType);
Doc InDesign.Document = null;
try {}
myInDesign.Open (pathToFile, true);
doc = myInDesign.ActiveDocument;
Page InDesign.Page = (InDesign.Page) doc. Pages: [1];
InDesign.TextFrame tf is doc. TextFrames.Add (doc.) Layers [1], idLocationOptions.idUnknown, doc);
TF. GeometricBounds = new string [4] {"26mm', '10', '229.4 mm',"94,95 mm"};
TF. Place (pathToTextFileName, false);
}
.....
Is it possible to make the text to automatically stretch to the following columns and pages?
Thank you very much.
Add a new text block, screw it to tf (tf.nextTextFrame = new textframe).
While the new textframe overflows, keep adding and threading executives.
In CS4, you can make use of "Smart Text reflow", which can save you some trouble.
Peter
Tags: InDesign
Similar Questions
-
How to prevent the scrambling of text as you type
How to prevent the scrambling of text as you type
Hello
1. What do you exactly mean by interference?
2 does this happen on all applications such as word, Notepad?
I suggest you to follow these steps and check if that helps:
Method 1:
Start the computer in safe mode and check if the same problem occurs:
http://Windows.Microsoft.com/en-us/Windows-Vista/start-your-computer-in-safe-modeMethod 2:
Try to perform the clean boot and check if it helps:
http://support.Microsoft.com/kb/929135NOTE: When you are finished troubleshooting, make sure that restore you the computer mode normal startup such as suggested in step 7 of the above article.
Check if that helps.
-
How to get the hour format system?
Hi all
How to get the hour format system, I mean what format 24 / 12 system uses?
Looks like the CalendarSettings class is perhaps the official way: https://developer.blackberry.com/native/reference/cascades/bb__pim__calendar__calendarsettings.html#...
-
BlackBerry smartphone how to set the Auto Mode bedside when loading?
Hi guys,.
As the topic. How to set the Auto Mode bedside when loading? Because this option, it does not exist in the clock menu options and I think that it was there before I did the upgrade.
Thanks in advance
9000 "BOLD"
Worm: 9000M_PBr4.6.0_rel508_PL4.0.0.243_A4.6.0.297_AT_amp_T
CTS network provider
solved thanks to you all,.
-
How to get the description of text box with some HTML <; P >; tag
Hi friends,
I created two point, an element of box P1_RICH_TEXT_FIELD rich text field and a text item field area P1_TEXT_AREA. I created the calculation process to copy the value of P1_RICH_TEXT_FIELD in P1_TEXT_AREA. Calculation works well but contect copy in P1_TEXT_AREA are
< p >
Test Test description description < /p >
< p >
Test DescritionTest DescritionTest description < /p >
< p >
Test DescritionTest DescritionTest description Test Test DescritionTest Test Test Test Descritionhkjhkh < /p > description description description description
I need to copy with the tag < p >.
How to get the description of text box with the HTML < P > tag
Thank you
Hi Alex,
Thank you very much. You want very criticle problem for me. Thank you very much.
Now, there are several tags in the rich text field
"span, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, big, del, dfn, em, img, ins, kbd, q, s, samp, small, strike, strong, sub, sup, b, u, I, Center, dl, dt, dd, ol, ul, li, label, table, caption, tbody, tfoot, thead, tr, th, td" etc.
How can I move all these in REGEXP_REPLACE (: P1_RICH_TEXT_FIELD, ')
|
(", 1, 0, im ') code.Thank you
-
How to save the .ico format
How to save the .ico format
You need plug-ins specific / programs such as Axialis Icon Workshop.
Mylenium
-
How to disable the auto contrast in HP Pavlion 2016tx g6
Hello
I had intended to publish an article about it for a long time. It's sort of a particular problem, to which I have found no solution so far.
What is the problem?
Auto contrast or auto-dim feature in my laptop is a real pain. I want to turn it off, but I can't. It's funny this is, this is not the case in Ubuntu 12.04 (installed in dual boot).
What is going on?
When that I'm viewing a Web page in a dark bakground (say a page with a black background and white text) contrast of the screen changes automatically. I can view the dark page correctly, but when I switch to the other tabs or reduce the window, it's a real eye strainer (I already use the card).
What have you tried?
- Well, for starters I tried meddleing with Catalyst Control Centerand have not been able to find the appropriate option.
- I also tried to disable the Aero theme, but when I right click on my desktop, this is what I see.
- That's why I changed the Standard Windows 7 Windows 7 Basic color scheme of Windows color and appearance. Yet, no luck
Technical specification:
- Offlical HP link to my laptop specs
- OS: Windows 7 Home Basic SP1, 64-bit edition
- I'm covered by the HP warranty
I really could use the help of the community.
Thank you
Sourav
Hi Clerck,
You're right, certainly a strange issue with the pages of gradation. This goes to an energy saving setting. Here is a link to a site third-party site that will show you with screen shots, how to change the power settings to prevent the screen from dimming.
http://CrossPlatform.NET/disable-auto-dimming-of-the-screen-on-your-HP-laptop/
Also, it does not hurt to make sure that your hardware is fully functional. Use the HP Support Assistant to ensure that all your drivers are up to date and that the equipment is working properly. Your laptop should have already installed HP Support Assistant or use the link below to download.
http://WWW8.HP.com/us/en/campaigns/hpsupportassistant/hpsupport.html
Thank you
-
Can someone please help me on how to generate excel file using pl/sql? I have generated csv files successfully, but now I need to generate a excel. I changed the code generation of the csv file, but the file gives me error when opening:
"The file you are trying to open,"XXXX.xls", is in a different format than specified by the file extension. Do you want to open it now? »
If I choose Yes then open the excel file, but it excludes the leading 0 in the front for one my column. How do I configure excel type default column as text rather than General, when you create the files? I also tried to generate excel file using xml. But I do not know how to set the type of column there, too. I'm using Oracle 11.2.0.3.0 and APEX 4.2.6.00.03. I'll call all these codes apex.
Code1 is used:
Declare
output_header varchar2 (4000);
fichier_en_sortie VARCHAR2 (255);
Varchar2 (2) EOL: = Chr (13) | Chr (10);
BEGIN
output_header: = 'tls_tracking_id ' | Chr (9) | ' fnn_ext' | Chr (9) | "path_id' | EOL;
fichier_en_sortie: = 'report_excel' |'. XLS;
owa_util.mime_header ("application/octet ', false");
HTP.p ('Content-Disposition: attachment; filename = "" | ") fichier_en_sortie |' « ') ;
owa_util.http_header_close;
HTP. PRN (output_header);
for r in)
Select tls_tracking_id, fnn_ext, DWD_DTOV_OUT_VW path_id
where nbn_loc_id = 'LOC000138413115. '
The order of tls_tracking_id LOOP)
HTP. PRN (r.tls_tracking_id
|| Chr (9) | r.fnn_ext
|| Chr (9) | r.path_id
|| EOL
);
END LOOP;
END;
Code2 used :
create or replace PACKAGE BODY IS pkg_excel_export
PROCEDURE excel_open (l_xml_body IN OUT NOCOPY CLOB) IS
BEGIN
l_xml_body: = ' <? XML version = "1.0" encoding = "ISO-8859-9"? > ' | Chr (10) |
"< workbook xmlns =" "urn: schemas-microsoft - com:office:spreadsheet" ' | "
Chr (10) |
""xmlns:o ="urn: schemas-microsoft-com ' ' |
Chr (10) |
"xmlns: x =" "urn: schemas-microsoft-com: excel" ' | "
Chr (10) |
""xmlns:ss ="urn: schemas-microsoft - com:office:spreadsheet" ' |
Chr (10) |
'xmlns:html=" http://www.w3.org/TR/REC-html40 ">' ||
Chr (10) |
' < ExcelWorkbook xmlns = "urn: schemas-microsoft-com: excel" > ' |
Chr (10) | ' < WindowHeight > 8580 < / WindowHeight > ' |
Chr (10) | ' < WindowWidth > 15180 < / WindowWidth > ' | Chr (10) |
' < WindowTopX > 120 < / WindowTopX > ' | Chr (10) |
' < WindowTopY > 45 < / WindowTopY > ' | Chr (10) |
' < ProtectStructure > false < / ProtectStructure > ' | Chr (10) |
' < ProtectWindows > false < / ProtectWindows > ' | Chr (10) |
' < / ExcelWorkbook > ' | Chr (10) | "< Styles > | Chr (10) |
'< ss:ID of style = 'Default' ss:Name 'Normal' = >' | Chr (10) |
"< ss:Vertical alignment = 'Bottom' / >" | " Chr (10) |
' < borders / > '. Chr (10) | ' < police / > '. Chr (10) |
' < Interior / > '. Chr (10) | ' < NumberFormat / > '. Chr (10) |
' < protection / > '. Chr (10) | "< / style > | Chr (10) |
'< ss:ID of style 's22' = >' | Chr (10) |
"< x: font family = ss"Swiss":"BOLD"="1"ss:Underline ="Single"/ >" | "
Chr (10) | "< / style > | Chr (10) | "< / style >";
END excel_open;
PROCEDURE excel_close (l_xml_body IN OUT NOCOPY CLOB) IS
BEGIN
l_xml_body: = l_xml_body | ' < / workbook > ';
END excel_close;
/ * Opens a worksheet in the Excel file. , You can open multiple worksheets. **/
PROCEDURE worksheet_open
(
l_xml_body IN OUT NOCOPY CLOB,
p_worksheetname in VARCHAR2
) IS
BEGIN
--
-Create the worksheet
--
l_xml_body: = l_xml_body | "' < worksheet ss:Name = ' ' | p_worksheetname |
"" > < table > ";"
END worksheet_open;
/ *Farm the worksheet in the Excel file. **/
PROCEDURE worksheet_close (l_xml_body IN OUT NOCOPY CLOB) IS
BEGIN
l_xml_body: = l_xml_body | ' < / table > < / worksheet > ';
END worksheet_close;
/ *Opens the tag line * /
PROCEDURE row_open (l_xml_body IN OUT NOCOPY CLOB) IS
BEGIN
l_xml_body: = l_xml_body | "< row >."
END row_open;
/ *Farm the tag line * /.
PROCEDURE row_close (l_xml_body IN OUT NOCOPY CLOB) IS
BEGIN
l_xml_body: = l_xml_body | "< / row > | Chr (10);
END row_close;
/ *After the opening of the line, we can write something the first cell* /
PROCEDURE cell_write
(
l_xml_body IN OUT NOCOPY CLOB,
p_content in VARCHAR2
) IS
BEGIN
l_xml_body: = l_xml_body | ' < cell > < data ss:Type = "String" > ' |
p_content | ' < / data > < / cell > ';
END cell_write;
/ * If you use this package of APEX, you get to download the excel file. **/
PROCEDURE excel_get
(
l_xml_body IN OUT NOCOPY CLOB,
p_filename in VARCHAR2
) IS
XX BLOB;
make the NUMBER;
This NUMBER;
BC NUMBER.
LC NUMBER;
w NUMBER;
BEGIN
DBMS_LOB.CREATETEMPORARY (xx, TRUE);
make: = 1;
so: = 1;
BC: = dbms_lob.default_csid;
LC: = dbms_lob.default_lang_ctx;
w: = dbms_lob.no_warning;
DBMS_LOB.converttoblob (xx,
l_xml_body,
DBMS_LOB.lobmaxsize,
do,
Thus,.
British Colombia,
LC,
(w);
owa_util.mime_header ("application/octet ', FALSE");
-set the size so that the browser knows how to download
HTP.p ("Content-length: ' |") DBMS_LOB.GetLength (xx));
-the name of the file will be used by the browser if users only one save as
HTP.p ('Content-Disposition: attachment; filename = "" | ") p_filename |
'.xls ' | '"');
-close the headers
owa_util.http_header_close;
-Download the BLOB
wpg_docload.download_file (XX);
END excel_get;
END pkg_excel_export;
I know it's a bit long code, but to better understand please consider...
Thank you.
I did worked putting just one extra line in my l_xml_body in the XML (Code 2 used). Now my excel generates with cells type 'Text' and there are no left falling to zero. Also the columns display not scientific format as 2.3D + 12. Current recording shows without default formatting.
'
-
How to add the time format 24 hours to the component convertDate and time?
Hello
I created a text input, then drag convertdate and time component on this once I've defined the type = "time".
I need how to get 24-hour format when I enter values in input text box.
If you use af:convertDateTime, you can provide a model like this: model = 'HH '.
-
How to set the auto complete in Windows Mail
How can I define the "full" automatic function in Windows Mail to use the Windows Messenger Contact list?
WinMail remembers only 29 addresses.How to delete registration completion email in Windows Mail
http://www.Winhelponline.com/articles/245/1/how-to-clear-the-email-auto-complete-entries-in-Windows-mail.htmlHow to remove an address from the list of AutoComplete in Windows Mail
http://email.about.com/od/windowsmailtips/Qt/et_del_autocomp.htm -
How to configure the properties of text in double to float in qml
Hey there, I print a temperature levels in my application and print very well but its shows like 32.38548758394c/89.89845098095F tempreture, then how to set the properties of the text so that it should be printed as 32.3/89.8F how to set its property from double to float
my code isLabel { text: "Temperature ="+_battery.temperature+("°C/")+(_battery.temperature*1.8 + (32)+("°F") multiline: true translationX: 50.0 translationY: 130 } textStyle { color: Color.White fontSize: FontSize.Large }
Please suggest
Don't forget that you can use Javascript inline in QML.
Just use
toFixed(1)
text: "Temperature ="+_battery.temperature.toFixed(1)+("°C/")+((_battery.temperature*1.8 + (32)).toFixed(1)+("°F")
-
How to change the image format to JPEG or GIF format on my webcam photos
I need to change the format of JPEG or GIF file. Anyone know how?
On Thu, 18 September 2014 13:59:34 + 0000, Jon White says:
I need to change the format of JPEG or GIF file. Anyone know how
Get a program that manages both the file format begins to and
the format that you want it to be, read the file in the program and make a
Save slot to the desired format. -
How to enable the auto-answer in Windows live messenger 2011
How can I activate the auto reply in windows live messenger 2011?
Hello DavidViele,
There is a Forum for problems with Windows Live products. Please ask your question in the below listed Windows Live Help forum.
http://windowslivehelp.com/product.aspx?ProductID=2They are experts in Windows Live Messenger available to help with your problem.
Sincerely,
Marilyn
-
How to change the date format in Lightroom, when importing images?
When you import into Lightroom, you get the following structure in Lightroom for Macintosh HD.
Year-> Date.
I want some level 3 like this structure. Year-> month-> Date
How to do this?
Hi lennartr,
When you import images, you can change the Date Format in "Copy as DNG, copy or move", but not in the Add box.
On the right panel, you expand the Destination folder and change the Date Format.
Let me know if it helps.
Kind regards
Tanuj
-
Options for PDF export - how to change the date format?
Hello
I use Adobe InDesign CC June 2015 on Windows 7.
When I export a PDF file to print, the date and the format is ' mm/dd/yyyy' (e.g. 2015/12/11 15:14:21) but I want to be ' dd/mm/yyyy' (for example 12/11/2015-15:14:21).
I know it's possible because my colleagues have this date format on their PDFs.
Do you know where I can change this option?
Thanks in advance,
Kind regards
Julie
Well, if the version of your indesign is french you must change the date format in system preferences
to take a peek here how you can do
Change the Format of Date under Windows 7, 8.1 and Windows 10 in dd-mm-yyyy
Maybe you are looking for
-
New Audio USB Interface lose sound on El Capitan
Hi all! A few weeks ago that I upgraded my MacBook Pro retina 15 "end 2013 to El Capitan, after that my USB Audio Interfaces (Focusrite Scarlett 2i4) and Safire 6 USB stopped working properly. Both work correctly when they are connected to an iMac 5K
-
Hello in the menu to the new version, some are English and some are greeks.what can I do?
-
View the graph of Subvi to component Panel before the VI
I have a Subvi, which manages the my main VI XY graph. How do the Subvi show graph in the face before of the calling VI? Thank you
-
HP OfficeJet 4620 - not the router's IP address
Hello! I have a HP Officejet 4620, who worked until yesterday under power and off the fine. Yes, digitization is a PITA, but well, it was a gift In any case. Since yesterday my 4620 won't get an IP address from my router. I use a router TP-Link WiFi
-
ENVY 100 and OS 10.7.1
Hi all I have installed all updates for HP envy 100 and connected to the internet / wireless printing and scanning of Mac OS 10.7.1 successfully. However when trying to scan from the touchscreen scanner, destined for 'Computer' selected none of the